[FFmpeg-devel] [PATCH] avcodec_copy_context()

Michael Niedermayer michaelni
Wed Mar 31 16:53:31 CEST 2010


On Wed, Mar 31, 2010 at 10:11:11AM -0400, Ronald S. Bultje wrote:
> Hi,
> 
> On Wed, Mar 31, 2010 at 9:59 AM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> > Hi Michael,
> >
> > On Wed, Mar 31, 2010 at 6:00 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> >> On Tue, Mar 30, 2010 at 02:23:03PM -0400, Ronald S. Bultje wrote:
> >>> + * @param dest target codec context, should be allocated with
> >>> + * ? ? ? ? ? ? #avcodec_alloc_context(), but otherwise uninitialized
> >>
> >> this should be checked if(->codec) or so maybe
> >
> > Coding error, so should be assert(), will add.

avcodec* is public api and public api should not call abort() for invalid
user arguments imho

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

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- 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/20100331/0156fa84/attachment.pgp>



More information about the ffmpeg-devel mailing list