[FFmpeg-devel] [PATCH]Support qclp in mov before stsd version 1

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jun 6 10:09:21 CEST 2013


Hi!

Attached patch fixes the following sample as reported by Compn:
http://web.archive.org/web/20071027002243/http://www.americaone.org/video/images/clip43qt3-hi.mov

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 1c03b15..2761b34 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1459,6 +1459,10 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
                 sc->samples_per_frame = 160;
                 sc->bytes_per_frame = 33;
                 break;
+            case AV_CODEC_ID_QCELP:
+                sc->samples_per_frame = 160;
+                sc->bytes_per_frame = 35;
+                break;
             default:
                 break;
             }


More information about the ffmpeg-devel mailing list