[vlc-commits] ts: Fix audio type description parsing
Aurelien Nephtali
git at videolan.org
Tue May 22 18:22:58 CEST 2012
vlc | branch: master | Aurelien Nephtali <aurelien.nephtali at gmail.com> | Tue May 22 13:34:42 2012 +0200| [55545b45143a71024dbc9d4a2162a1f88884c830] | committer: Rafaël Carré
ts: Fix audio type description parsing
It is broken since 12edd19f71df9e41c5ca79ddc470d7378ff64d33 and it crashes if type = 1.
Signed-off-by: Rafaël Carré <funman at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=55545b45143a71024dbc9d4a2162a1f88884c830
---
modules/demux/ts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index f9c2f4d..d5583d8 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -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;
}
More information about the vlc-commits
mailing list