diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-10-28 16:15:40 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-10-28 16:15:40 +0400 |
commit | 3f0671a2d34f96ed686ca182806db1b8183cbe7d (patch) | |
tree | 1537d4fb2579925f8fad8f32f713a2f0c81bab77 /libavcodec/ffv1.c | |
parent | 3dde66752d59dfdd0f3727efd66e7202b3c75078 (diff) |
factorize variable declaration in ffv1.
Originally committed as revision 25592 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r-- | libavcodec/ffv1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index f88ebe6cfb..b183dddfc4 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -960,13 +960,13 @@ static av_cold int encode_init(AVCodecContext *avctx) } 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(AVCodecContext *avctx) 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); |