[FFmpeg-devel] [PATCH]Support more MPEG1VIDEO in mov
Carl Eugen Hoyos
cehoyos at ag.or.at
Sat Oct 22 00:48:21 CEST 2011
Hi!
Attached patch fixes ticket #579.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/isom.c b/libavformat/isom.c
index 1060c89..540bc5f 100644
--- a/libavformat/isom.c
+++ b/libavformat/isom.c
@@ -152,6 +152,7 @@ const AVCodecTag codec_movvideo_tags[] = {
{ CODEC_ID_MPEG1VIDEO, MKTAG('m', '1', 'v', '1') }, /* Apple MPEG-1 Camcorder */
{ CODEC_ID_MPEG1VIDEO, MKTAG('m', 'p', 'e', 'g') }, /* MPEG */
+ { CODEC_ID_MPEG1VIDEO, MKTAG('m', '1', 'v', ' ') },
{ CODEC_ID_MPEG2VIDEO, MKTAG('m', '2', 'v', '1') }, /* Apple MPEG-2 Camcorder */
{ CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '1') }, /* MPEG2 HDV 720p30 */
{ CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '2') }, /* MPEG2 HDV 1080i60 */
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3c8bbc9..f9dd17f 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1339,6 +1339,9 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
case CODEC_ID_AC3:
st->need_parsing = AVSTREAM_PARSE_FULL;
break;
+ case CODEC_ID_MPEG1VIDEO:
+ st->need_parsing = AVSTREAM_PARSE_FULL;
+ break;
default:
break;
}
More information about the ffmpeg-devel
mailing list