diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-04-08 03:38:59 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-04-08 03:38:59 +0000 |
commit | 17ad7b24c890a9816bd3e7b737c44ba7505aea67 (patch) | |
tree | 36a59c12ff738d2955c695d762d624477c4aac2c /libavformat | |
parent | 4bce3ba480db3f85dbc18417542cc1168edbd9d8 (diff) | |
download | ffmpeg-17ad7b24c890a9816bd3e7b737c44ba7505aea67.tar.gz |
force sample for qcelp when not stored in mov, fix #968
Originally committed as revision 18374 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mov.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 188b43c67d..7317f5411d 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1034,6 +1034,9 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOVAtom atom) #endif /* no ifdef since parameters are always those */ case CODEC_ID_QCELP: + // force sample rate for qcelp when not stored in mov + if (st->codec->codec_tag != MKTAG('Q','c','l','p')) + st->codec->sample_rate = 8000; st->codec->frame_size= 160; st->codec->channels= 1; /* really needed */ break; |