[FFmpeg-devel] [PATCH] better default stream selection

Aurelien Jacobs aurel
Tue Jun 3 02:02:36 CEST 2008


Hi

Right now, av_find_default_stream_index() will return index to the first
video stream. If there is no video stream, it will just return 0.
In case of an audio file with attachments, it may point to the
attachment instead of the audio stream as one would expect.
The attached patch ensure the first audio stream is selected as the
default stream when no video stream is present.

Aurel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_default_stream.diff
Type: text/x-diff
Size: 642 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080603/b3f27c16/attachment.diff>



More information about the ffmpeg-devel mailing list