avcodec/qsvdec: Fix null dereferences in the qsv decoder
authorYuli Khodorkovskiy <ykhodo@gmail.com>
Fri, 29 Jul 2016 15:00:44 +0000 (11:00 -0400)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Aug 2016 17:16:24 +0000 (19:16 +0200)
commitf0adb99d068e659178c00271a46cd469dfc01a6e
tree8411aff9ae05d21dc8de5471c89ed8b0bf543687
parentbbec14de3126dbc4e1ec2b32ed714dab173386aa
avcodec/qsvdec: Fix null dereferences in the qsv decoder

This patch fixes the h264_qsv decoder issues mentioned
in https://ffmpeg.zeranoe.com/forum/viewtopic.php?t=2962.

The patch may be tested by specifying h264_qsv as the decoder to ffplay
for an h264 encoded file.

ffplay -vcodec h264_qsv foo.mts

Signed-off-by: Yuli Khodorkovskiy <ykhodo@gmail.com>
Push requested-by: Ivan Uskov
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/qsvdec.c