[FFmpeg-devel] [PATCH] Fix parser not to clobber has_b_frames when extradata is set.

Michael Niedermayer michaelni at gmx.at
Sat Aug 20 00:31:03 CEST 2011


On Fri, Aug 19, 2011 at 10:41:53PM +0200, Reimar Döffinger wrote:
> Due to it in contrast to the decoder not setting up low_delay,
> the code in parse_nal_units would always end up setting has_b_frames
> to 1 (except when stream is explicitly marked as low delay).
> Since the parser itself would create extradata, simply reopening
> the parser would cause this.
> estimate_timings_from_pts would cause the parser to be reopened
> on the same stream.
> 
> This fixes trac issue #360.
> 
> Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> ---
>  libavcodec/h264_parser.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)

i hope this has no sideeffects
but due to lack of a cleaner solution iam fine with it


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110820/710865fc/attachment.asc>


More information about the ffmpeg-devel mailing list