[FFmpeg-trac] #7708(avcodec:new): avcodec_receive_frame - get number of bytes consumed

FFmpeg trac at avcodec.org
Wed Jan 30 14:47:19 EET 2019


#7708: avcodec_receive_frame - get number of bytes consumed
-------------------------------------+-----------------------------------
             Reporter:  jannis_wth   |                    Owner:
                 Type:  enhancement  |                   Status:  new
             Priority:  wish         |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------

Comment (by jannis_wth):

 I do use 'avcodec_decode_audio4', but I noticed that since ffmpeg 3.4 my
 code was broken.
 It had to do with 'compat_decode' storing state and expecting its input
 packet to match it.
 Additionally errors (ret < 0) are now expected to be handled by the user,
 basically resetting said state.

 While I was trying to figure out why my code was not working anymore, I
 realised that 'compat_decode' basically just uses the new recive API +
 keeping problematic state.
 So the natural thing for me was to directly use this new API.
 On top of that I find the deprecated warning to be annoying :)
 I will do as you say and send a patch to the mailing list.

 What about my additional question though? Anyone has an idea?

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7708#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list