OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e59fb3f
)
Use AV_RN32 for an unaligned read in the mxg demuxer.
author
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Wed, 26 Jun 2013 07:33:44 +0000
(09:33 +0200)
committer
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Wed, 26 Jun 2013 07:33:44 +0000
(09:33 +0200)
Fixes ticket #2707.
libavformat/mxg.c
patch
|
blob
|
history
diff --git
a/libavformat/mxg.c
b/libavformat/mxg.c
index
604be78
..
3a6cf77
100644
(file)
--- 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) {