ffmpeg_files/intreadwrite.h: fix AV_RL32/AV_RB32 signedness
commit6d187a73f0a56c79d73831eb90bf9a38e98dba6b
authorUoti Urpala <uau@mplayer2.org>
Tue, 14 Jun 2011 21:02:59 +0000 (15 00:02 +0300)
committerUoti Urpala <uau@mplayer2.org>
Tue, 14 Jun 2011 21:10:47 +0000 (15 00:10 +0300)
tree558c9e58fb9bef845edc8a88234270b455dd51a7
parent378ada847c8eb3a641392691b1a2317f8fc214e0
ffmpeg_files/intreadwrite.h: fix AV_RL32/AV_RB32 signedness

The output type of the AV_RL32/AV_RB32 macros was signed int. The
resulting overflow broke at least some ASF streams with large
timestamps (AV_RL32 used in demux_asf.c timestamp parsing code). Fix
by adding a cast to uint32_t. This code comes from FFmpeg, and the
matching code in Libav/FFmpeg is still broken (but not used there in
most common configurations).
ffmpeg_files/intreadwrite.h