[FFmpeg-devel] [PATCH] Demuxer for AMV files
Michael Niedermayer
michaelni
Sat Sep 29 19:08:55 CEST 2007
On Sun, Sep 30, 2007 at 12:03:52AM +0700, Vladimir Voroshilov wrote:
> 2007/9/29, Michael Niedermayer <michaelni at gmx.at>:
> > Hi
> >
> > On Sat, Sep 29, 2007 at 05:27:03PM +0200, Vitor Sessak wrote:
> > > Hi
> > >
> > > Vladimir Voroshilov wrote:
> > > > Hi, All
> > > >
> > > > Attached patch implements demuxer for AMV files.
> > > > AMV fourcc tag moved to the end of AVI tags array as suggested by Aurelian.
> > > >
> > > > Discussion can be found
> > > > in "Video decoder and demuxer for AMV files" thread.
> > > >
> > > > If patch is ok please apply.
> > > >
> > > > P.S. AMV video decoder is required for this patch to be applied.
> > >
> > > [...]
> > >
> > > > + int width=0, height=0;
> > > > + int amv_file_format=0;
> > > >
> > > > avi->stream_index= -1;
> > > >
> > > > @@ -276,6 +279,8 @@
> > > > avi->is_odml = 1;
> > > > url_fskip(pb, size + (size & 1));
> > > > break;
> > > > + case MKTAG('a', 'm', 'v', 'h'):
> > > > + amv_file_format=1;
> > > > case MKTAG('a', 'v', 'i', 'h'):
> > > > /* avi header */
> > > > /* using frame_period is bad idea */
> > > > @@ -286,8 +291,11 @@
> > > >
> > > > url_fskip(pb, 2 * 4);
> > > > get_le32(pb);
> > > > + get_le32(pb);
> > > > + width=get_le32(pb);
> > > > + height=get_le32(pb);
> > >
> > > Sorry for not bring this up before, but wouldn't it be better to call
> > > these variables "amv_width" and "amv_height" since they are AMV specific?
> >
> > are they? what do they contain in normal avi files?
>
> They contans the same, but not used by lavf demuxer (it uses info from
> stream header).
if they always contain width/height why should they be called
amv_width/height?
avih_width / avih_height seem like better names to me ...
[...]
--
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/73359888/attachment.pgp>
More information about the ffmpeg-devel
mailing list