error_concealment: Check that the reference is not NULL
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 19 Apr 2012 10:14:08 +0000 (12:14 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 19 Apr 2012 10:56:49 +0000 (12:56 +0200)
commit903ccf71b757cd30ce8e2378fd8ba87664e78449
tree384ad5d0634a9f39fa420568c087a7a384176828
parentb06604604624050a1924be019611fec2ed7b4f73
error_concealment: Check that the reference is not NULL

In normal picture decoding this does not need to be checked but as
error concealment is run in the case of errors the availability of
references is less certain. This may be fixed differently at some
point so that all references are always filled in before the EC
code, in which case this should then be changed to an assert()

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/error_resilience.c