[FFmpeg-devel] [PATCH] Make output-example.c handle AAC audio

Martin Storsjö martin
Thu Jan 21 15:15:32 CET 2010


Hi,

If running libavformat/output-example with a .mp4 filename, it currently 
fails. The attached patch fixes this, by adding two changes:

- If the output format has a global header, set the global header flag for 
the audio codec (the example already sets it for the video codec, the 
lines are copied verbatim from that part)

- When encoding audio, handle the case when c->coded_frame is null

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output-example.diff
Type: text/x-diff
Size: 982 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100121/b778935d/attachment.diff>



More information about the ffmpeg-devel mailing list