h264: Only apply error concealment if theres a frame
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 20 Jan 2013 14:03:13 +0000 (15:03 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 7 Feb 2013 00:00:02 +0000 (01:00 +0100)
commit3f2715804019a963bdd4e7fe7aafbd5e72aba0f5
tree64f5dfe5ab2dead984f552791e6c43aacf090fc4
parentc459c7b23efffab762560e41ad6a2c0dbbfd4915
h264: Only apply error concealment if theres a frame

Without any correctly decoded slices, there can be no frame.

Fixes out of array reads

Found-by: Rafaël Carré
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 60af6c3138dc501a647bc69b374d5d33d5d86ab5)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c