changeset 8418:f75be04312dc libavcodec

Fix PTS returned by the demuxers for mpeg4 without a decoder. More precissely fix has_b_frames. Fixes issue757
author michael
date Sun, 21 Dec 2008 21:47:29 +0000
parents ad4f10287633
children 6a12ba62978a
files h263.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Sun Dec 21 21:30:36 2008 +0000
+++ b/h263.c	Sun Dec 21 21:47:29 2008 +0000
@@ -6137,6 +6137,7 @@
 end:
     if(s->flags& CODEC_FLAG_LOW_DELAY)
         s->low_delay=1;
+    s->avctx->has_b_frames= !s->low_delay;
     return decode_vop_header(s, gb);
 }