projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a27fb0
)
set sample rate for amr to allow stream copy since no decoder is present,
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Fri, 3 Oct 2008 19:37:41 +0000
(19:37 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Fri, 3 Oct 2008 19:37:41 +0000
(19:37 +0000)
3gp does not store sample rate in stsd in fact. Fixes #674.
Originally committed as revision 15536 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index 8ff964e3c56a5d4b216d0cf4baac1ab11156c16f..ec11a6855e58c278ea72ebe8b506eaf68e7bd7b5 100644
(file)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-991,6
+991,9
@@
static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
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: