[FFmpeg-trac] #1996(avcodec:new): why avcodec_get_context_defaults3 does NOT set codec_id field corresponding to the gived codec?

FFmpeg trac at avcodec.org
Thu Dec 6 11:42:14 CET 2012


#1996: why avcodec_get_context_defaults3 does NOT set codec_id field corresponding
to the gived codec?
-----------------------------------+---------------------------------------
             Reporter:  theateist  |                     Type:  defect
               Status:  new        |                 Priority:  normal
            Component:  avcodec    |                  Version:  unspecified
             Keywords:             |               Blocked By:
             Blocking:             |  Reproduced by developer:  0
Analyzed by developer:  0          |
-----------------------------------+---------------------------------------
 The documentation of "avcodec_get_context_defaults3" says:
 Set the fields of the given AVCodecContext to default values corresponding
 to the given codec.

 But it doesn't set some fields, for example "codec_id", why?
 {{{
 auto encoder = avcodec_find_encoder(AV_CODEC_ID_H264);
 avcodec_get_context_defaults3(outStream->codec, encoder);
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1996>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list