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

Michael Niedermayer michael at niedermayer.cc
Thu Apr 28 16:46:49 CEST 2016


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have never wished to cater to the crowd; for what I know they do not
approve, and what they approve I do not know. -- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160428/e2c11bf5/attachment.sig>


More information about the ffmpeg-devel mailing list