From c94849c25f9d90feb2e7185e34bda79efb605fac Mon Sep 17 00:00:00 2001 From: bcoudurier Date: Wed, 8 Apr 2009 03:38:59 +0000 Subject: [PATCH] force sample for qcelp when not stored in mov, fix #968 git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18374 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavformat/mov.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index 188b43c67..7317f5411 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; -- 2.39.2