]> git.sesse.net Git - ffmpeg/commit
avformat/utils: Avoid duplicating extradata from extract_extradata BSF
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 7 Sep 2020 13:47:07 +0000 (15:47 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 11 Sep 2020 12:38:18 +0000 (14:38 +0200)
commit5fc3eda8de40a7fb19a8052dde39325eaad38ba5
treed2d9267dd7fa790ac0adf5b388881b3ec364fcd4
parent13d72cecd5df776349f624565dc88158bf782e3b
avformat/utils: Avoid duplicating extradata from extract_extradata BSF

Instead move the extradata contained in packet side-data to its
destination. This is possible because the side data already has zeroed
padding.

Notice that the check for FF_MAX_EXTRADATA_SIZE has been dropped,
because said constant is from libavcodec/internal.h. If libavcodec
wanted to enforce this, it should do so in the extract_extradata BSF
instead.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/utils.c