[vlc-commits] mp4: fix flawed logic (close #7058)

Ludovic Fauvet git at videolan.org
Fri Aug 31 08:18:08 CEST 2012


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Fri Aug 31 03:48:18 2012 +0200| [25a85e9285b958ee28ac239d02a9d89e8e6c1560] | committer: Rémi Denis-Courmont

mp4: fix flawed logic (close #7058)

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=25a85e9285b958ee28ac239d02a9d89e8e6c1560
---

 modules/demux/mp4/mp4.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 10932ba..df99e72 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -1953,8 +1953,10 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
 
             case VLC_CODEC_AMR_NB:
                 p_track->fmt.audio.i_rate = 8000;
+                break;
             case VLC_CODEC_AMR_WB:
                 p_track->fmt.audio.i_rate = 16000;
+                break;
             case VLC_FOURCC( 'Q', 'D', 'M', 'C' ):
             case VLC_CODEC_QDM2:
             case VLC_CODEC_ALAC:



More information about the vlc-commits mailing list