changeset 714:3086560254cd libavformat

29_vtag_in_ASF_not_effective.patch by (Calcium | calcium nurs or jp)
author michael
date Wed, 23 Mar 2005 12:42:12 +0000
parents 3c8a21cd6296
children e214703e4b76
files avienc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/avienc.c	Wed Mar 23 12:35:27 2005 +0000
+++ b/avienc.c	Wed Mar 23 12:42:12 2005 +0000
@@ -246,7 +246,7 @@
     
     put_le16(pb, enc->bits_per_sample ? enc->bits_per_sample : 24); /* depth */
     /* compression type */
-    put_le32(pb, for_asf ? codec_get_asf_tag(tags, enc->codec_id) : enc->codec_tag);
+    put_le32(pb, for_asf ? (enc->codec_tag ? enc->codec_tag : codec_get_asf_tag(tags, enc->codec_id)) : enc->codec_tag); //
     put_le32(pb, enc->width * enc->height * 3);
     put_le32(pb, 0);
     put_le32(pb, 0);