forked from FFmpeg/FFmpeg
avcodec/rv34: Remove always-true/false checks
low_delay is always zero for rv34. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
1916ead811
commit
539777f008
1 changed files with 2 additions and 2 deletions
|
@ -1568,7 +1568,7 @@ static int finish_frame(AVCodecContext *avctx, AVFrame *pict)
|
||||||
if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THREAD_FRAME))
|
if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THREAD_FRAME))
|
||||||
ff_thread_report_progress(&s->current_picture_ptr->tf, INT_MAX, 0);
|
ff_thread_report_progress(&s->current_picture_ptr->tf, INT_MAX, 0);
|
||||||
|
|
||||||
if (s->pict_type == AV_PICTURE_TYPE_B || s->low_delay) {
|
if (s->pict_type == AV_PICTURE_TYPE_B) {
|
||||||
if ((ret = av_frame_ref(pict, s->current_picture_ptr->f)) < 0)
|
if ((ret = av_frame_ref(pict, s->current_picture_ptr->f)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
ff_print_debug_info(s, s->current_picture_ptr, pict);
|
ff_print_debug_info(s, s->current_picture_ptr, pict);
|
||||||
|
@ -1613,7 +1613,7 @@ int ff_rv34_decode_frame(AVCodecContext *avctx, AVFrame *pict,
|
||||||
/* no supplementary picture */
|
/* no supplementary picture */
|
||||||
if (buf_size == 0) {
|
if (buf_size == 0) {
|
||||||
/* special case for last picture */
|
/* special case for last picture */
|
||||||
if (s->low_delay==0 && s->next_picture_ptr) {
|
if (s->next_picture_ptr) {
|
||||||
if ((ret = av_frame_ref(pict, s->next_picture_ptr->f)) < 0)
|
if ((ret = av_frame_ref(pict, s->next_picture_ptr->f)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
s->next_picture_ptr = NULL;
|
s->next_picture_ptr = NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue