Browse Source

h264: unmark frames at the end

Fixes assertion failure

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 12 years ago
parent
commit
96d1b7ffca
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/h264.c

+ 1
- 0
libavcodec/h264.c View File

@@ -4327,6 +4327,7 @@ static int decode_frame(AVCodecContext *avctx, void *data,
h->delayed_pic[i] = h->delayed_pic[i + 1];

if (out) {
out->f.reference &= ~DELAYED_PIC_REF;
*got_frame = 1;
*pict = out->f;
}


Loading…
Cancel
Save