[FFmpeg-devel] [PATCH] mp4toannexb modification / improvement

Michael Niedermayer michaelni
Thu Jun 3 23:39:44 CEST 2010

On Thu, Jun 03, 2010 at 01:07:48PM +0200, Luca Abeni wrote:
> Hi all,
> the "mp4toannexb" currently converts an H264 bitstream from
> the "AVC" syntax to "Annex B byte stream format", inserting
> the (converted) extradata in the stream when a NAL with type
> 5 is received.
> However, in some cases (see the recent thread about H.264 and
> RTP) it might be useful to only convert the extradata, and to
> get the converted extradata before the bsf is fed with any data.
> Hence, I propose to modify / enhance this filter to return the
> converted extradata if no data is passed (that is, if buf_size
> is 0). The "regular" behaviour of the filter is not affected
> by this patch (the only difference is that if buf_size == 0 the
> filter returns the converted extradata instead of failing), and
> this patch allows to avoid a good amount of code duplication in
> sdp.c...
> Is the patch ok? If not, what is needed to make it acceptable?

why does the bsf not convert the extradata?
i mean it leaves the extradata in "AVC" syntax


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100603/9bd62742/attachment.pgp>

More information about the ffmpeg-devel mailing list