[Ffmpeg-cvslog] r8240 - trunk/libavformat/asf-enc.c

Michael Niedermayer michaelni
Mon Mar 5 15:42:11 CET 2007


Hi

On Mon, Mar 05, 2007 at 10:56:23AM +0100, Guillaume POIRIER wrote:
> Hi,
> 
> On 3/5/07, michael <subversion at mplayerhq.hu> wrote:
> >Author: michael
> >Date: Mon Mar  5 03:41:49 2007
> >New Revision: 8240
> >
> >Modified:
> >   trunk/libavformat/asf-enc.c
> >
> >Log:
> >create codec_comment_header which looks more like what M$ creates, sane or 
> >not ...
> >
> >
> >Modified: trunk/libavformat/asf-enc.c
> >==============================================================================
> >--- trunk/libavformat/asf-enc.c (original)
> >+++ trunk/libavformat/asf-enc.c Mon Mar  5 03:41:49 2007
> >@@ -428,8 +428,17 @@ static int asf_write_header1(AVFormatCon
> >         enc = s->streams[n]->codec;
> >         p = avcodec_find_encoder(enc->codec_id);
> >
> >-        put_le16(pb, asf->streams[n].num);
> >-        put_str16(pb, p ? p->name : enc->codec_name);
> >+        if(enc->codec_type == CODEC_TYPE_AUDIO)
> >+            put_le16(pb, 2);
> >+        else if(enc->codec_type == CODEC_TYPE_VIDEO)
> >+            put_le16(pb, 1);
> >+        else
> >+            put_le16(pb, -1);
> >+
> >+        if(enc->codec_id == CODEC_ID_WMAV2)
> >+            put_str16(pb, "Windows Media Audio V8");
> >+        else
> >+            put_str16(pb, p ? p->name : enc->codec_name);
> >         put_le16(pb, 0); /* no parameters */
> 
> Doesn't this break regression tests?

ooops, i only checked make libavtest without thinking
ill fix this as soon as the svn up; make; make test provides and confirms 
the new checksums

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

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20070305/c6e299ba/attachment.pgp>



More information about the ffmpeg-cvslog mailing list