Commit 55545b45 authored by Aurelien Nephtali's avatar Aurelien Nephtali Committed by Rafaël Carré

ts: Fix audio type description parsing

It is broken since 12edd19f and it crashes if type = 1.
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 669ce09e
......@@ -3544,7 +3544,7 @@ static char *GetAudioTypeDesc(demux_t *p_demux, int type)
if (type < 0 || type > 3)
msg_Dbg( p_demux, "unknown audio type: %d", type);
else if (type > 0)
return strdup(audio_type[type - 1]);
return strdup(audio_type[type]);
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment