msmpeg4v1: fix undefined behaviour in msmpeg4_decode_picture_header()
authorMåns Rullgård <mans@mansr.com>
Tue, 24 Aug 2010 15:40:57 +0000 (15:40 +0000)
committerMåns Rullgård <mans@mansr.com>
Tue, 24 Aug 2010 15:40:57 +0000 (15:40 +0000)
commitb3c1652b8208cd77fdc247a1cca9b07f03d63c10
tree1c18da887244c0a1ed08016a891e3ffaf842670e
parente2f402f160cf574cc69431f4a40a60078cf5e911
msmpeg4v1: fix undefined behaviour in msmpeg4_decode_picture_header()

Because the order of evaluation of subexpressions is undefined, two
get_bits() calls may not be part of the same expression.  In this
specific case, using get_bits_long() is simpler.

This fixes msmpeg4v1 decoding with armcc.

Originally committed as revision 24902 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/msmpeg4.c