[FFmpeg-trac] #10849(undetermined:new): demux_decode example fails to decode audio that ffmpeg can decode

FFmpeg trac at avcodec.org
Thu Feb 8 18:54:12 EET 2024


#10849: demux_decode example fails to decode audio that ffmpeg can decode
-------------------------------------+-------------------------------------
             Reporter:  Andrew       |                    Owner:  (none)
  Wason                              |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Andrew Wason):

 The decode_filter_audio example also has this issue:
 {{{
 > cd doc/examples/
 > ./decode_filter_audio_g /tmp/audio.nut >/dev/null
 Output: srate:8000Hz fmt:s16 chlayout:mono
 Error while sending a packet to the decoder
 Error occurred: Invalid argument
 }}}

 I git bisected ffmpeg, and this issue was fixed in ffmpeg commit
 > fftools/ffmpeg_dec: restructure audio/video decoding loop
 https://github.com/FFmpeg/FFmpeg/commit/748f2999eee82fd507da327fa57e47730f5effc1

 So the main ffmpeg decoding loop was changed in a way that it now handles
 this file, but the decoding loops in the samples were not and so they
 still fail.

 I think these lines were the fix:
 https://github.com/FFmpeg/FFmpeg/blob/748f2999eee82fd507da327fa57e47730f5effc1/fftools/ffmpeg_dec.c#L426-L430
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10849#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list