[FFmpeg-trac] #5027(avcodec:new): avcodec_free_context frees extradata

FFmpeg trac at avcodec.org
Tue Nov 24 01:35:50 CET 2015


#5027: avcodec_free_context frees extradata
-------------------------------------+-----------------------------------
             Reporter:  jyavenard    |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------

Comment (by jyavenard):

 Why would it leak?

 extradata was *never* supposed to have been freed automatically by avcodec
 when in decoder mode.
 That it is now freed within avcodec_free_context *is* the bug.

 This is per the extradata documentation.

 The use case, is respecting the API as it's always been: that is the
 ownership of extradata is by the user, not avcodec.

 Particular use case is that extradata is shared information.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5027#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list