[FFmpeg-cvslog] r25592 - trunk/libavcodec/ffv1.c
michael
subversion
Thu Oct 28 14:15:40 CEST 2010
Author: michael
Date: Thu Oct 28 14:15:40 2010
New Revision: 25592
Log:
factorize variable declaration in ffv1.
Modified:
trunk/libavcodec/ffv1.c
Modified: trunk/libavcodec/ffv1.c
==============================================================================
--- trunk/libavcodec/ffv1.c Wed Oct 27 18:30:01 2010 (r25591)
+++ trunk/libavcodec/ffv1.c Thu Oct 28 14:15:40 2010 (r25592)
@@ -960,13 +960,13 @@ static av_cold int encode_init(AVCodecCo
}
if(avctx->stats_in){
char *p= avctx->stats_in;
+ char *next;
av_assert0(s->version>=2);
for(;;){
for(j=0; j<256; j++){
for(i=0; i<2; i++){
- char *next;
s->rc_stat[j][i]= strtol(p, &next, 0);
if(next==p){
av_log(avctx, AV_LOG_ERROR, "2Pass file invalid at %d %d [%s]\n", j,i,p);
@@ -979,7 +979,6 @@ static av_cold int encode_init(AVCodecCo
for(j=0; j<s->context_count[i]; j++){
for(k=0; k<32; k++){
for(m=0; m<2; m++){
- char *next;
s->rc_stat2[i][j][k][m]= strtol(p, &next, 0);
if(next==p){
av_log(avctx, AV_LOG_ERROR, "2Pass file invalid at %d %d %d %d [%s]\n", i,j,k,m,p);
More information about the ffmpeg-cvslog
mailing list