You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
Support old qclp-in-mov files that do not store bytes_per_frame in the header.
Fixes ticket #2649.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user