]> git.sesse.net Git - ffmpeg/commit
avcodec/svq3: Don't copy watermarked frame data twice
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 20 Mar 2021 17:58:23 +0000 (18:58 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 23 Mar 2021 12:51:18 +0000 (13:51 +0100)
commitbcf707639e2eb308407cf5536153a27bdff91990
treee9497506d2599d6007a40de164836a6e262847a5
parent3ab1a890e84cd109ad3a87b4c93f8c2de5b27f5a
avcodec/svq3: Don't copy watermarked frame data twice

The SVQ3 decoder modifies the input bitstream at two places.
One of them is only reached when the file is watermarked.
Therefore commit 2264c1108135380c49fdf0aef97520bf77a6ed37
made a copy of all the frame data in this case.

But there is a second possibility for modifying the frame and
therefore Libav commit 1098f5c0495c61a98d4ff6b8e24c17974d4bace5
made the decoder always copy the data. This of course makes
the additional copy for watermarked frames redundant, but it hasn't
been removed. This commit does so.

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