[FFmpeg-trac] #717(avcodec:new): AVFrame->format field not set when decoding audio
FFmpeg
trac at avcodec.org
Wed Dec 7 20:51:28 CET 2011
#717: AVFrame->format field not set when decoding audio
---------------------------------+---------------------------------------
Reporter: Markus | Type: defect
Status: new | Priority: normal
Component: avcodec | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------+---------------------------------------
According to header documentation, the AVFrame format field should contain
a value of type "enum AVSampleFormat" for audio data, but it is always -1
when calling avcodec_decode_audio4 (verified only for mpeg audio, but a
quick code look up makes be belief this is true for all other decoders as
well).
Since this value is present in the AVCodecContext field "sample_fmt", it
would be easy to just copy it from there to the decoded AVFrame, just as
this already happens for avcodec_decode_video2 (where pix_fmt is copied
there).
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/717>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list