aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mxg.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-06-26 09:33:44 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-06-26 09:33:44 +0200
commit35aed74fdc7b53ac6c2f0648aa864a108d0e0c7e (patch)
tree573931927c284633a281eb3ea1f87fe795e4ce64 /libavformat/mxg.c
parente59fb3f8b18adf0bbeee7946a177b961b6a719ea (diff)
downloadffmpeg-35aed74fdc7b53ac6c2f0648aa864a108d0e0c7e.tar.gz
Use AV_RN32 for an unaligned read in the mxg demuxer.
Fixes ticket #2707.
Diffstat (limited to 'libavformat/mxg.c')
-rw-r--r--libavformat/mxg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxg.c b/libavformat/mxg.c
index 604be785bc..3a6cf77b26 100644
--- a/libavformat/mxg.c
+++ b/libavformat/mxg.c
@@ -74,7 +74,7 @@ static int mxg_read_header(AVFormatContext *s)
static uint8_t* mxg_find_startmarker(uint8_t *p, uint8_t *end)
{
for (; p < end - 3; p += 4) {
- uint32_t x = *(uint32_t*)p;
+ uint32_t x = AV_RN32(p);
if (x & (~(x+0x01010101)) & 0x80808080) {
if (p[0] == 0xff) {