[FFmpeg-devel] [PATCH]Support qclp in mov before stsd version 1, v2
Carl Eugen Hoyos
cehoyos at ag.or.at
Thu Jun 6 13:33:21 CEST 2013
Hi!
Attached patch fixes the following sample as reported by Compn on irc:
http://web.archive.org/web/20071027002243/http://www.americaone.org/video/images/clip43qt3-hi.mov
As the original patch, it does not break samples with variable frame size like
h263.mov
Contrary to the original patch, this patch does not break stsd version 1
samples with bitrate < FULL.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 1c03b15..0f8d4e6 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1459,6 +1459,11 @@ 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;
+ if (!sc->bytes_per_frame)
+ sc->bytes_per_frame = 35;
+ break;
default:
break;
}
More information about the ffmpeg-devel
mailing list