avcodec/rawdec: check for side data before checking its size
authorJames Almer <jamrial@gmail.com>
Fri, 4 Nov 2016 01:34:58 +0000 (22:34 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 5 Dec 2016 17:57:01 +0000 (14:57 -0300)
commita1d9c17368706e8a6293782b70dc7398a72b842a
treef62ad08642958ef1a708019b602cec696fde78d1
parentf788507607ad9719c158c94cc58704048ac83f89
avcodec/rawdec: check for side data before checking its size

Fixes valgrind warnings about usage of uninitialized values.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 51e329918dc1826de7451541cb15bef3b9bfe138)
libavcodec/rawdec.c