# HG changeset patch # User alex # Date 1094830694 0 # Node ID cff6c9b8ae5796667028a0eaebb0cb3ce1c40bc2 # Parent 9492be49de46d082264b0a41d250f8d10ab86898 put the warning to the right place to avoid crashes diff -r 9492be49de46 -r cff6c9b8ae57 ffv1.c --- a/ffv1.c Wed Sep 08 18:49:12 2004 +0000 +++ b/ffv1.c Fri Sep 10 15:38:14 2004 +0000 @@ -537,6 +537,12 @@ FFV1Context *s = avctx->priv_data; int i; + if(avctx->strict_std_compliance >= 0){ + av_log(avctx, AV_LOG_ERROR, "this codec is under development, files encoded with it wont be decodeable with future versions!!!\n" + "use vstrict=-1 to use it anyway\n"); + return -1; + } + common_init(avctx); s->version=0; @@ -629,12 +635,6 @@ AVFrame * const p= &f->picture; int used_count= 0; - if(avctx->strict_std_compliance >= 0){ - av_log(avctx, AV_LOG_ERROR, "this codec is under development, files encoded with it wont be decodeable with future versions!!!\n" - "use vstrict=-1 to use it anyway\n"); - return -1; - } - ff_init_cabac_encoder(c, buf, buf_size); ff_init_cabac_states(c, ff_h264_lps_range, ff_h264_mps_state, ff_h264_lps_state, 64); c->lps_state[2] = 1;