Browse code

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>

Thierry Foucu authored on 2013/03/19 06:00:23
Showing 1 changed files
... ...
@@ -426,6 +426,7 @@ static const enum MovChannelLayoutTag mov_ch_layouts_wav[] = {
426 426
     MOV_CH_LAYOUT_MPEG_7_1_A,
427 427
     MOV_CH_LAYOUT_MPEG_7_1_C,
428 428
     MOV_CH_LAYOUT_SMPTE_DTV,
429
+    0,
429 430
 };
430 431
 
431 432
 static const struct {