[FFmpeg-devel] [PATCH] avcodec/utils: split side-data in new decode API too

wm4 nfxjfg at googlemail.com
Fri Apr 29 10:36:11 CEST 2016


On Thu, 28 Apr 2016 16:46:49 +0200
Michael Niedermayer <michael at niedermayer.cc> wrote:

> On Thu, Apr 28, 2016 at 03:34:34PM +0200, wm4 wrote:
> > The deprecated avcodec_decode_video2() and avcodec_decode_audio4()
> > functions called av_packet_split_side_data() on the input packets. This
> > is required for packets produced by libavformat with the
> > AVFMT_FLAG_KEEP_SIDE_DATA flag unset (which is unfortunately the
> > default).
> > 
> > The new API didn't do this yet, although it didn't matter as no decoder
> > supports the new API yet. The emulation layer for the old API calls the
> > old API functions, which took care of the splitting. Add this code to
> > the new API codec entrypoints too, because we shouldn't send essentially
> > corrupted data to decoders.
> > ---
> >  libavcodec/utils.c | 14 ++++++++++----
> >  1 file changed, 10 insertions(+), 4 deletions(-)  
> 
> patch should be ok
> 
> thanks
> 
> [...]

Applied, thanks.


More information about the ffmpeg-devel mailing list