h264: fix invalid shifts in init_cavlc_level_tab()
authorMans Rullgard <mans@mansr.com>
Tue, 11 Oct 2011 11:58:31 +0000 (12:58 +0100)
committerMans Rullgard <mans@mansr.com>
Tue, 11 Oct 2011 14:00:56 +0000 (15:00 +0100)
commit8babfc033ecb6332155c1f8879e54dee41d16952
tree763df742c177a25a0404f72ddf343771bf4b48d2
parent88d1e2b2b0a129365a62efd666db0394e8ffbe08
h264: fix invalid shifts in init_cavlc_level_tab()

The level_code expression includes a shift which is invalid in
those cases where the value is not used.  Moving the calculation
to the branch where the result is used avoids these.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/h264_cavlc.c