Ticket #717 (closed defect: fixed)
AVFrame->format field not set when decoding audio
|Reported by:||Markus||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||yes|
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).