You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
set sample rate for amr to allow stream copy since no decoder is present,
3gp does not store sample rate in stsd in fact. Fixes #674. Originally committed as revision 15536 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -991,6 +991,9 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
|
|||||||
case CODEC_ID_AMR_WB:
|
case CODEC_ID_AMR_WB:
|
||||||
st->codec->frame_size= sc->samples_per_frame;
|
st->codec->frame_size= sc->samples_per_frame;
|
||||||
st->codec->channels= 1; /* really needed */
|
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)
|
||||||
|
st->codec->sample_rate = 8000;
|
||||||
break;
|
break;
|
||||||
case CODEC_ID_MP2:
|
case CODEC_ID_MP2:
|
||||||
case CODEC_ID_MP3:
|
case CODEC_ID_MP3:
|
||||||
|
Reference in New Issue
Block a user