Mercurial > libavcodec.hg
comparison h263.c @ 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 | 7a463923ecd1 |
comparison
equal
deleted
inserted
replaced
8417:ad4f10287633 | 8418:f75be04312dc |
---|---|
6135 startcode = 0xff; | 6135 startcode = 0xff; |
6136 } | 6136 } |
6137 end: | 6137 end: |
6138 if(s->flags& CODEC_FLAG_LOW_DELAY) | 6138 if(s->flags& CODEC_FLAG_LOW_DELAY) |
6139 s->low_delay=1; | 6139 s->low_delay=1; |
6140 s->avctx->has_b_frames= !s->low_delay; | |
6140 return decode_vop_header(s, gb); | 6141 return decode_vop_header(s, gb); |
6141 } | 6142 } |
6142 | 6143 |
6143 /* don't understand why they choose a different header ! */ | 6144 /* don't understand why they choose a different header ! */ |
6144 int intel_h263_decode_picture_header(MpegEncContext *s) | 6145 int intel_h263_decode_picture_header(MpegEncContext *s) |