[FFmpeg-cvslog] r15562 - trunk/libavformat/mov.c
bcoudurier
subversion
Sun Oct 5 01:30:35 CEST 2008
Author: bcoudurier
Date: Sun Oct 5 01:30:35 2008
New Revision: 15562
Log:
10l, fix amrwb sample rate
Modified:
trunk/libavformat/mov.c
Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c (original)
+++ trunk/libavformat/mov.c Sun Oct 5 01:30:35 2008
@@ -992,8 +992,10 @@ static int mov_read_stsd(MOVContext *c,
st->codec->frame_size= sc->samples_per_frame;
st->codec->channels= 1; /* really needed */
/* force sample rate for amr, stsd in 3gp does not store sample rate */
- if (st->codec->codec_id != CODEC_ID_QCELP)
+ if (st->codec->codec_id == CODEC_ID_AMR_NB)
st->codec->sample_rate = 8000;
+ else if (st->codec->codec_id == CODEC_ID_AMR_WB)
+ st->codec->sample_rate = 16000;
break;
case CODEC_ID_MP2:
case CODEC_ID_MP3:
More information about the ffmpeg-cvslog
mailing list