Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-02-23 03:41:53 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-02-23 03:41:53 +0400
commit5d6fac114b5ef6c792cf7dd77cf825f1d9785247 (patch)
tree97380cb02eb881ec8605f757c34d95262944119f /libavformat
parent0aded6bf028ff188e3bbd7eb023bd854b474b794 (diff)
Support old qclp-in-mov files that do not store bytes_per_frame in the header.
Fixes ticket #2649.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 2597ec9a30..b03d017881 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1536,6 +1536,10 @@ static int mov_finalize_stsd_codec(MOVContext *c, AVIOContext *pb,
// 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;
+ // FIXME: Why is the following needed for some files?
+ sc->samples_per_frame = 160;
+ if (!sc->bytes_per_frame)
+ sc->bytes_per_frame = 35;
break;
case AV_CODEC_ID_AMR_NB:
st->codec->channels = 1;