avcodec/h264_slice: Simplify ref2frm indexing
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 17 Dec 2015 21:51:00 +0000 (22:51 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 17 Dec 2015 23:55:15 +0000 (00:55 +0100)
commitcfbf608c0af6e45254e7d66903a31daf5452c2de
tree68706b41dbcacd5b44736344115b437de30cc6f1
parent1dddd5371a6a60525e9c9c4f5e2534456f84b9d6
avcodec/h264_slice: Simplify ref2frm indexing

This also suppresses a ubsan warning
Fixes Mozilla bug 1230247

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

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