[FFmpeg-cvslog] Support old qclp-in-mov files that do not store bytes_per_frame in the header.

Carl Eugen Hoyos git at videolan.org
Sun Feb 23 01:26:13 CET 2014


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Feb 23 00:41:53 2014 +0100| [5d6fac114b5ef6c792cf7dd77cf825f1d9785247] | committer: Carl Eugen Hoyos

Support old qclp-in-mov files that do not store bytes_per_frame in the header.

Fixes ticket #2649.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5d6fac114b5ef6c792cf7dd77cf825f1d9785247
---

 libavformat/mov.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 2597ec9..b03d017 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;



More information about the ffmpeg-cvslog mailing list