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)
committerSean McGovern <gseanmcg@gmail.com>
Mon, 14 Apr 2014 20:55:38 +0000 (16:55 -0400)
commit30e58e65e543d04d5e52bf188b31abf4dd41a104
treecd6a35dbc10e3921bfa5c1bc5ae04b0411e2c281
parentaf40847681b978441fdd25276685414f9e17820a
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