[vlc-commits] commit: mp4: set amr-nb samplerate to 8000, as it's only valid one ( Ilkka Ollakka )

git at videolan.org git at videolan.org
Mon Jun 14 16:56:55 CEST 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon Jun 14 17:56:17 2010 +0300| [1405901025e0a3d3baa81fd7e3cb2d31d8069240] | committer: Ilkka Ollakka 

mp4: set amr-nb samplerate to 8000, as it's only valid one

Fixes some 3gp-videos with amr-nb audio.

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

 modules/demux/mp4/mp4.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 7e7ff57..bd84188 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -1895,9 +1895,10 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
                             p_track->fmt.i_extra);
                 }
                 break;
+            case VLC_FOURCC( 's', 'a', 'm', 'r' ):
+                p_track->fmt.audio.i_rate = 8000;
             case VLC_FOURCC( 'Q', 'D', 'M', 'C' ):
             case VLC_FOURCC( 'Q', 'D', 'M', '2' ):
-            case VLC_FOURCC( 's', 'a', 'm', 'r' ):
             case VLC_FOURCC( 'a', 'l', 'a', 'c' ):
                 p_track->fmt.i_extra =
                     p_sample->data.p_sample_soun->i_qt_description;



More information about the vlc-commits mailing list