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:
9c22039
)
Fix termination of mov_ch_layouts_wav array lookup
author
Thierry Foucu
<tfoucu@gmail.com>
Mon, 18 Mar 2013 21:00:23 +0000
(14:00 -0700)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 18 Mar 2013 22:50:35 +0000
(23:50 +0100)
Problem found using ASAN.
In some case, the ff_mov_get_channel_layout_tag function will not find 0
as termination for lookup in the array mov_ch_layouts_wav.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mov_chan.c
patch
|
blob
|
history
diff --git
a/libavformat/mov_chan.c
b/libavformat/mov_chan.c
index
cf1f839
..
7078b4a
100644
(file)
--- a/
libavformat/mov_chan.c
+++ b/
libavformat/mov_chan.c
@@
-426,6
+426,7
@@
static const enum MovChannelLayoutTag mov_ch_layouts_wav[] = {
MOV_CH_LAYOUT_MPEG_7_1_A,
MOV_CH_LAYOUT_MPEG_7_1_C,
MOV_CH_LAYOUT_SMPTE_DTV,
+ 0,
};
static const struct {