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

FFmpeg trac at avcodec.org
Thu Feb 8 19:07:12 EET 2024


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

 * component:  undetermined => avformat

Comment:

 So the underlying issue is that `av_read_frame` can return an `AVPacket`
 with 0 size and non NULL data before EOF. Apparently this happens for
 `fate-indeo3-2` and my ffmpeg generated NUT/FLAC sample. The main ffmpeg
 decoding loop has a workaround for this, but any other demuxer/decoders
 (like the ones in doc/examples) would need a similar workaround, or else
 this issue should be fixed in avformat or somewhere else itself.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10849#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list