# HG changeset patch # User bcoudurier # Date 1223062661 0 # Node ID a8383d02c6864256fde0a1b83823e0c4c11d0f8d # Parent 549a09cf23fec12dd198103d2e9b136fb6245662 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. diff -r 549a09cf23fe -r a8383d02c686 mov.c --- a/mov.c Fri Oct 03 10:16:29 2008 +0000 +++ b/mov.c Fri Oct 03 19:37:41 2008 +0000 @@ -991,6 +991,9 @@ case CODEC_ID_AMR_WB: 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) + st->codec->sample_rate = 8000; break; case CODEC_ID_MP2: case CODEC_ID_MP3: