avcodec/h264_refs: discard mismatching references
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 30 Jun 2015 01:23:30 +0000 (03:23 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 30 Jun 2015 01:24:26 +0000 (03:24 +0200)
commit4aa0de644a2de62f0bc3013a4533ab9283aa0a65
tree5b3ebc4e6993afaea8ec8b61d98e5dbcbafb49e3
parent84afc6b70d24fc0bf686e43138c96cf60a9445fe
avcodec/h264_refs: discard mismatching references

Fixes inconsistency and out of array access
Fixes: asan_heap-oob_17301a3_2100_cov_3226131691_ff_add_pixels_clamped_mmx.m2ts

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