h264: prevent two matching fields from being both a short/long ref combination
authorAnton Khirnov <anton@khirnov.net>
Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 18 Jan 2014 19:42:39 +0000 (20:42 +0100)
commit98cc9efc5f6b4dc847ed3b9b60b1c3bcd14e6791
tree01d7c5c2bb4e86a72f6c8cbb0a1004e54c8bc62c
parent00dbff4c3e048b4abd01bf805725aabff0fa5ee1
h264: prevent two matching fields from being both a short/long ref combination

Fixes possible access to freed memory.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
libavcodec/h264_refs.c