[FFmpeg-devel] [PATCH] ffmpeg: allow overriding and amending AVStream->disposition

Nicolas George george at nsup.org
Thu Jan 8 23:09:14 CET 2015


Le nonidi 19 nivôse, an CCXXIII, Michael Niedermayer a écrit :
> + { "default"   , ... { .i64 = AV_DISPOSITION_DEFAULT }, ...
> + { "dub"       , ... { .i64 = AV_DISPOSITION_DUB     }, ...
> + { "original"  , ... { .i64 = AV_DISPOSITION_ORIGINAL}, ...
<snip>

That makes the third copy of this flag↔string table in the code base: it is
probably time to make it available through the API. Something like:

    const char *av_disposition_get_name(unsigned disposition);

Then the option table in this patch can be built on the fly.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150108/942b4e1f/attachment.asc>


More information about the ffmpeg-devel mailing list