avcodec/h264_refs: Fix long_idx check
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 19 Dec 2015 20:59:42 +0000 (21:59 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 30 Jan 2016 23:25:19 +0000 (00:25 +0100)
commitffda227636a31ff0689ee9057dc0c904df5d3333
treeb6e0a9fcd45b389c43e59ba49219b37c0ad5a962
parent8132ed4a4377db8bd94a77e7227d3acd771e3487
avcodec/h264_refs: Fix long_idx check

Fixes out of array read
Fixes mozilla bug 1233606

Found-by: Tyson Smith
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit b92b4775a0d07cacfdd2b4be6511f3cb362c977b)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_refs.c