[FFmpeg-trac] #4722(avcodec:new): avcodec_alloc_context3 returns NULL - without error

FFmpeg trac at avcodec.org
Tue Jul 14 17:02:26 CEST 2015


#4722: avcodec_alloc_context3 returns NULL - without error
-----------------------------------+-----------------------------------
             Reporter:  TheSHEEEP  |                    Owner:
                 Type:  defect     |                   Status:  new
             Priority:  normal     |                Component:  avcodec
              Version:  2.7        |               Resolution:
             Keywords:             |               Blocked By:
             Blocking:             |  Reproduced by developer:  0
Analyzed by developer:  0          |
-----------------------------------+-----------------------------------

Comment (by gjdfgh):

 > decodeCodecContext = stream->codec;

 No, this is deprecated and/or not recommended. Normally you should create
 your own AVCodecContext for decoding, copy all needed codec parameters,
 and then open it. You can use avcodec_copy_context() for copying the
 parameters.

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


More information about the FFmpeg-trac mailing list