[FFmpeg-devel] [PATCH/RFC] Per-codec option system

Michael Niedermayer michaelni
Wed Sep 30 23:47:03 CEST 2009


On Wed, Sep 30, 2009 at 04:23:31PM -0400, Ronald S. Bultje wrote:
> Hi,
> 
> On Wed, Sep 30, 2009 at 4:11 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> > On Wed, Sep 30, 2009 at 09:04:00PM +0200, Stefano Sabatini wrote:
> >> The trick here is to find some way to tell av_set_option() to look for
> >> an option in the private context of the codec, then eventually to
> >> check then in the global shared context if the option is not found
> >> there,
> >
> > one way:
> > ? ?ret= av_set_string3(avcodec_opts[CODEC_TYPE_VIDEO], opt+1, arg, 1, &o);
> > + ? if(ret<0 && avcodec_opts[CODEC_TYPE_VIDEO]->codec->priv_class)
> > + ? ? ? ret= av_set_string3(avcodec_opts[CODEC_TYPE_VIDEO]->priv_data, opt+1, arg, 1, &o);
> 
> This is what I intended as well, I didn't see the options were already

it also should allow some things to be moved
from AVCodecContext to MpegEncContext

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090930/baf4e1a0/attachment.pgp>



More information about the ffmpeg-devel mailing list