[FFmpeg-cvslog] Cosmetics: Move ffv1 encoder initialisation code.
Carl Eugen Hoyos
git at videolan.org
Tue Jul 10 14:33:21 CEST 2012
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Jul 10 14:21:29 2012 +0200| [08ed3e8bf45bfc22b57ce13c9b8e21018bc597f8] | committer: Carl Eugen Hoyos
Cosmetics: Move ffv1 encoder initialisation code.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=08ed3e8bf45bfc22b57ce13c9b8e21018bc597f8
---
libavcodec/ffv1.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 44ef911..5e71f83 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -918,10 +918,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
s->ac= avctx->coder_type ? 2:0;
- if(s->ac>1)
- for(i=1; i<256; i++)
- s->state_transition[i]=ver2_state[i];
-
s->plane_count=3;
switch(avctx->pix_fmt){
case PIX_FMT_YUV444P9:
@@ -989,6 +985,10 @@ static av_cold int encode_init(AVCodecContext *avctx)
return AVERROR(EINVAL);
}
+ if(s->ac>1)
+ for(i=1; i<256; i++)
+ s->state_transition[i]=ver2_state[i];
+
for(i=0; i<256; i++){
s->quant_table_count=2;
if(s->bits_per_raw_sample <=8){
More information about the ffmpeg-cvslog
mailing list