avidec: fix signed overflow in avi_sync()
authorMans Rullgard <mans@mansr.com>
Sat, 8 Oct 2011 00:51:37 +0000 (01:51 +0100)
committerMans Rullgard <mans@mansr.com>
Mon, 10 Oct 2011 16:49:13 +0000 (17:49 +0100)
commit1703013cb7f06bb6304cbf3c5fd650d8076ee295
tree14736edc519ed5d8a140232e8ed51354cbaf03b4
parent0c46e958d1fd3817b8e9fa048d0450d509c80378
avidec: fix signed overflow in avi_sync()

Keeping byte values read from the file as unsigned is consistent
with how they are subsequently used and avoids an undefined left
shift by 24 when bit 7 is set.

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