]> git.sesse.net Git - ffmpeg/commit
avcodec/magicyuv: Don't zero unnecessarily
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 31 Aug 2020 17:51:03 +0000 (19:51 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 1 Sep 2020 09:05:38 +0000 (11:05 +0200)
commit7f452c099a47eb54131f4a36e6078471e24c39b4
treebdc0445bdca3a3a4fc984e9de1b1a5f233ba6d79
parente8716b7e4c600577f43bd8519dfb30b214830fde
avcodec/magicyuv: Don't zero unnecessarily

The code already checks that exactly the expected amount of entries are
read and set. Ergo it is unnecessary to zero them at the beginning.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/magicyuv.c