[Libav-user] Updated libav/ffmpeg tutorial
wm4
nfxjfg at googlemail.com
Tue Feb 17 13:12:01 CET 2015
On Tue, 17 Feb 2015 13:29:08 +0200
Anton Shekhovtsov <shekh.anton at gmail.com> wrote:
> 2015-02-17 12:44 GMT+02:00 wm4 <nfx <nfxjfg at googlemail.com>
>
> > > if(avcodec_open2(pCodecCtx, pCodec)<0)
> >
> > You must not use the AVStream's codec context for decoding. Use
> > avcodec_copy_context().
> >
>
> Can you explain this? demuxing_decoding.c does not have it!
Then the example is slightly wrong (unfortunately nothing unusual).
There is no "strict" requirement yet to use a separate context, but
it's "strongly discouraged". For now it still works fine mostly.
More information about the Libav-user
mailing list