Fix [#22612] FFMPEG writes incorrect Xvid FourCC code
authorNathan Letwory <nathan@letworyinteractive.com>
Mon, 13 Sep 2010 12:56:39 +0000 (12:56 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Mon, 13 Sep 2010 12:56:39 +0000 (12:56 +0000)
Reported by Karl Nyman

When XVID is chosen for FFMPEG make sure that XVID is written for FourCC code.

source/blender/blenkernel/intern/writeffmpeg.c

index 8ebf98ef930ca7f8d49784f50c67f4b092556739..6cd207f628c643e284f11937051fcba78b874b1a 100644 (file)
@@ -515,6 +515,7 @@ static AVStream* alloc_video_stream(RenderData *rd, int codec_id, AVFormatContex
        if (codec_id == CODEC_ID_XVID) {
                /* arghhhh ... */
                c->pix_fmt = PIX_FMT_YUV420P;
+               c->codec_tag = (('D'<<24) + ('I'<<16) + ('V'<<8) + 'X');
        }
 
        if (codec_id == CODEC_ID_H264) {