On Thu, Dec 4, 2014 at 6:48 PM, Luca Barbato <[email protected]> wrote: > On 04/12/14 19:28, Vittorio Giovara wrote: >> >> --- >> libavformat/utils.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/libavformat/utils.c b/libavformat/utils.c >> index 3ea0ebd..5115339 100644 >> --- a/libavformat/utils.c >> +++ b/libavformat/utils.c >> @@ -2235,6 +2235,8 @@ int avformat_find_stream_info(AVFormatContext *ic, >> AVDictionary **options) >> break; >> } >> } >> + /* Get the NAL from the parser and copy it to extradata. >> + * Used for example to get extradata from h264 in mp4. */ >> if (st->parser && st->parser->parser->split && >> !st->codec->extradata) { >> int i = st->parser->parser->split(st->codec, pkt->data, >> pkt->size); >> if (i > 0 && i < FF_MAX_EXTRADATA_SIZE) { >> > > Sure, why not.
This is actually related to all codecs that can be stored in MP4 and the whole comment is valid for h264. Maybe I should add a line about that too, does anyone have any suggestions? -- Vittorio _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
