[Libav-user] Deep copy of AVCodecContext
nfxjfg at googlemail.com
Thu Apr 23 10:35:40 CEST 2015
On Thu, 23 Apr 2015 02:10:31 +0200
Lukasz Marek <lukasz.m.luki2 at gmail.com> wrote:
> W dniu wtorek, 21 kwietnia 2015 Zahir Dhada <zahir.dhada at zeuslearning.com>
> > Hi all,
> > But I cannot seem to find anything on how to make a deep copy of the
> > AVCodecContext.
> > Any help in the matter would be appreciated.
> I didn't even try to understant your use case, but there is such function.
> It may be not full deep copy (ffmpeg community will surly apreciate patches
> for bugs there),
> anyway the function you are looking for is avcodec_copy_context. I'm not
> sure it is in public header, but should be exported at least.
It copies only codec parameters, and explicitly does not work on opened
contexts. An actual deep copy during decoding would be insane. (Don't
know if that matters for his use-case.)
More information about the Libav-user