[FFmpeg-devel] [PATCH] Video decoder and demuxer for AMV files

Michael Niedermayer michaelni
Sat Sep 29 02:04:53 CEST 2007


On Wed, Sep 26, 2007 at 11:01:52PM +0700, Vladimir Voroshilov wrote:
[...]

> Index: mplayer/libavformat/avidec.c
> ===================================================================
> --- mplayer/libavformat/avidec.c	(revision 10592)
> +++ mplayer/libavformat/avidec.c	(working copy)
> @@ -58,6 +58,7 @@
>  } AVIContext;
>  
>  static const char avi_headers[][8] = {
> +    { 'R', 'I', 'F', 'F',    'A', 'M', 'V', ' ' },
>      { 'R', 'I', 'F', 'F',    'A', 'V', 'I', ' ' },
>      { 'R', 'I', 'F', 'F',    'A', 'V', 'I', 'X' },
>      { 'R', 'I', 'F', 'F',    'A', 'V', 'I', 0x19},

this hunk can be commited


> @@ -286,8 +291,11 @@
>  
>              url_fskip(pb, 2 * 4);
>              get_le32(pb);
> +            get_le32(pb);
> +            width=get_le32(pb);//streams
> +            height=get_le32(pb);//buf

what are these comments trying to say?


> @@ -416,6 +426,15 @@
>                  st = s->streams[stream_index];
>                  switch(codec_type) {
>                  case CODEC_TYPE_VIDEO:
> +                    if(amv_file_format){
> +                        st->codec->width=width;
> +                        st->codec->height=height;
> +                        st->codec->codec_type = CODEC_TYPE_VIDEO;
> +                        st->codec->codec_id = CODEC_ID_AMVVIDEO;

> +                        st->codec->codec_tag = 0;

why? what value is it here without that?


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070929/029e36dd/attachment.pgp>



More information about the ffmpeg-devel mailing list