OSDN Git Service

Have xvid encoder wrapper honnor -vtag option
authorRamiro Polla <ramiro@lisha.ufsc.br>
Sun, 15 Oct 2006 16:52:33 +0000 (16:52 +0000)
committerGuillaume Poirier <gpoirier@mplayerhq.hu>
Sun, 15 Oct 2006 16:52:33 +0000 (16:52 +0000)
Patch by Ramiro Polla angustia A arrozcru P no-ip P org
Original thread:
Date: 14.10.2006 05:44
Subject: [Ffmpeg-devel] xvid ignores -vtag

Originally committed as revision 6701 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/xvidff.c

index e48bfe5..590fe4b 100644 (file)
@@ -335,7 +335,8 @@ int ff_xvid_encode_init(AVCodecContext *avctx)  {
     } else {
         /* We are claiming to be XviD */
         x->quicktime_format = 0;
-        avctx->codec_tag = ff_get_fourcc("xvid");
+        if(!avctx->codec_tag)
+            avctx->codec_tag = ff_get_fourcc("xvid");
     }
 
     /* Bframes */