h264_refs: make sure not to write over the bounds of the default ref list
authorAnton Khirnov <anton@khirnov.net>
Fri, 15 Nov 2013 18:06:23 +0000 (19:06 +0100)
committerReinhard Tartler <siretart@tauware.de>
Sun, 1 Jun 2014 00:05:18 +0000 (20:05 -0400)
commite0d8a17402b934b8fba7b86c6c990abf1257901b
tree86c09b9c14f27d49ed1874887043cc64dfe95ed2
parent2cbc8dfeddcbe00ef5f112162912bb49c1dd6623
h264_refs: make sure not to write over the bounds of the default ref list

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