[FFmpeg-devel] [PATCH]Support more MPEG1VIDEO in mov

Michael Niedermayer michaelni at gmx.at
Sat Oct 22 01:31:19 CEST 2011


On Sat, Oct 22, 2011 at 12:48:21AM +0200, Carl Eugen Hoyos wrote:
> Hi!
> 
> Attached patch fixes ticket #579.
> 
> Please comment, Carl Eugen

probably ok
baptiste ?

>  isom.c |    1 +
>  mov.c  |    3 +++
>  2 files changed, 4 insertions(+)
> fbebc0e27cfe0c717f962b888c0fa9f81a1494f0  patchm1v20.diff
> 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;
>      }

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111022/5014ae24/attachment.asc>


More information about the ffmpeg-devel mailing list