OSDN Git Service

MK(BE)TAG: avoid undefined shifts
authorMans Rullgard <mans@mansr.com>
Thu, 24 Nov 2011 23:15:59 +0000 (23:15 +0000)
committerMans Rullgard <mans@mansr.com>
Fri, 25 Nov 2011 00:20:03 +0000 (00:20 +0000)
commit6b34fbba9b73e1914d56c2aff96356326002430d
tree113c6b281d52e78fc2853ff97707338e3d7cb8a7
parent7f1b427018ecff59e0e14031eecc79aac0d91ec8
MK(BE)TAG: avoid undefined shifts

Casting the left-most byte to unsigned avoids an undefined
result of the shift by 24 if bit 7 is set.  This affects
the rm demuxer.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavutil/common.h