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>
Sat, 5 Nov 2016 02:38:56 +0000 (23:38 -0300)
commit51e329918dc1826de7451541cb15bef3b9bfe138
treec3b72682c571393ad66baa3420ceb882f9fb4f8b
parent7e603fb322d19f433723e95538f1b867b15ebf40
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>
libavcodec/rawdec.c