You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcoec/snowenc: silence some deprecation warnings
This commit is contained in:
@@ -1644,8 +1644,12 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
}
|
}
|
||||||
|
|
||||||
ff_snow_frame_start(s);
|
ff_snow_frame_start(s);
|
||||||
|
#if FF_API_CODED_FRAME
|
||||||
|
FF_DISABLE_DEPRECATION_WARNINGS
|
||||||
av_frame_unref(avctx->coded_frame);
|
av_frame_unref(avctx->coded_frame);
|
||||||
ret = av_frame_ref(avctx->coded_frame, s->current_picture);
|
ret = av_frame_ref(avctx->coded_frame, s->current_picture);
|
||||||
|
FF_ENABLE_DEPRECATION_WARNINGS
|
||||||
|
#endif
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
@@ -1675,7 +1679,9 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
s->m.f_code=1;
|
s->m.f_code=1;
|
||||||
s->m.pict_type = pic->pict_type;
|
s->m.pict_type = pic->pict_type;
|
||||||
#if FF_API_MOTION_EST
|
#if FF_API_MOTION_EST
|
||||||
|
FF_DISABLE_DEPRECATION_WARNINGS
|
||||||
s->m.me_method= s->avctx->me_method;
|
s->m.me_method= s->avctx->me_method;
|
||||||
|
FF_ENABLE_DEPRECATION_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
s->m.motion_est= s->motion_est;
|
s->m.motion_est= s->motion_est;
|
||||||
s->m.me.scene_change_score=0;
|
s->m.me.scene_change_score=0;
|
||||||
@@ -1878,10 +1884,14 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
if(avctx->flags&AV_CODEC_FLAG_PASS1)
|
if(avctx->flags&AV_CODEC_FLAG_PASS1)
|
||||||
ff_write_pass1_stats(&s->m);
|
ff_write_pass1_stats(&s->m);
|
||||||
s->m.last_pict_type = s->m.pict_type;
|
s->m.last_pict_type = s->m.pict_type;
|
||||||
|
#if FF_API_STAT_BITS
|
||||||
|
FF_DISABLE_DEPRECATION_WARNINGS
|
||||||
avctx->frame_bits = s->m.frame_bits;
|
avctx->frame_bits = s->m.frame_bits;
|
||||||
avctx->mv_bits = s->m.mv_bits;
|
avctx->mv_bits = s->m.mv_bits;
|
||||||
avctx->misc_bits = s->m.misc_bits;
|
avctx->misc_bits = s->m.misc_bits;
|
||||||
avctx->p_tex_bits = s->m.p_tex_bits;
|
avctx->p_tex_bits = s->m.p_tex_bits;
|
||||||
|
FF_ENABLE_DEPRECATION_WARNINGS
|
||||||
|
#endif
|
||||||
|
|
||||||
emms_c();
|
emms_c();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user