[FFmpeg-devel] [PATCH] Add default stream flag

Evgeniy Stepanov eugeni.stepanov
Fri Feb 29 00:26:36 CET 2008


On Thursday 28 February 2008 23:49:15 Michael Niedermayer wrote:
> On Thu, Feb 28, 2008 at 11:24:22PM +0300, Evgeniy Stepanov wrote:
> > Hi,
> >
> > this patch adds 'default_stream' flag to AVStream. Streams marked as
> > default are to be selected for playback (or whatever else) if the user
> > does not have any other preference (like language, or an exact stream
> > id).
> >
> > This patch adds support for such streams in matroska muxer and demuxer. I
> > don't know if there is similar functionality in other containers.
>
> nut of course ...
>
> > Is there a better place to put this information, without adding a new
> > member to AVStream ?
> >
> > Maybe add an AVStream.flags with one bit of it occupied by
> > default_stream flag ?
>
> This is better, but please call it int disposition; with
> AV_DISPOSITION_DEFAULT
> AV_DISPOSITION_DUB
> AV_DISPOSITION_ORIGINAL
> AV_DISPOSITION_COMMENT
> AV_DISPOSITION_LYRICS
> AV_DISPOSITION_KARAOKE

Here. Both matroska and nut supported (I invented new disposition 'default' 
for nut, it is not in the spec). In ffmpeg.c, disposition is copied from ist 
to ost.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stream-disposition.patch
Type: text/x-diff
Size: 7896 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080229/e47ef650/attachment.patch>



More information about the ffmpeg-devel mailing list