[FFmpeg-trac] #5057(undetermined:new): master broke AVCodecContext compatibility with LibAV project
FFmpeg
trac at avcodec.org
Fri Dec 4 13:55:33 CET 2015
#5057: master broke AVCodecContext compatibility with LibAV project
-------------------------------------+-------------------------------------
Reporter: jyavenard | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by jyavenard):
Replying to [comment:18 Cigaes]:
> Applications are not allowed to allocate {{{AVCodecContext}}}
themselves. They have to use the library functions:
{{{avcodec_alloc_context3()}}} for example. The size of
{{{AVCodecContext}}} can (and ''does'') change due to new fields added to
the end without notice; if you allocate it using some kind of
{{{malloc(sizeof(AVCodecContext))}}} code, it will be too small for later
versions of the library.
we do not, we use avcodec_alloc_context3.
Should have said AVPacket
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5057#comment:19>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list