[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:57:44 CEST 2010


vlc/vlc-1.1 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon Jun 14 17:56:17 2010 +0300| [9ee0418c6d9165f2ee86528da38b36de0d463e67] | committer: Ilkka Ollakka 

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

Fixes some 3gp-videos with amr-nb audio.
(cherry picked from commit 1405901025e0a3d3baa81fd7e3cb2d31d8069240)

Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=9ee0418c6d9165f2ee86528da38b36de0d463e67
---

 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 b75f0e2..7a0a92c 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -1874,9 +1874,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