summaryrefslogtreecommitdiff
path: root/libavformat/mov_chan.c
diff options
context:
space:
mode:
authorThierry Foucu <tfoucu@gmail.com>2013-03-18 14:00:23 -0700
committerMichael Niedermayer <michaelni@gmx.at>2013-03-18 23:50:35 +0100
commit823efd9286b376c27aca20547c4b5e27f7c920e6 (patch)
tree64fcc7b3b9e0e5342789c7a06e82b46e5f90db94 /libavformat/mov_chan.c
parent9c22039c158c47c03df6c1e3b820fdf727a6c9c2 (diff)
Fix termination of mov_ch_layouts_wav array lookup
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>
Diffstat (limited to 'libavformat/mov_chan.c')
-rw-r--r--libavformat/mov_chan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mov_chan.c b/libavformat/mov_chan.c
index cf1f839800..7078b4a1eb 100644
--- 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 {