From dc1094f03c10c2d863a15f1d8638ea8742e42f32 Mon Sep 17 00:00:00 2001
From: dscho <dscho>
Date: Mon, 23 May 2005 18:31:23 +0000
Subject: work around bug in ffmpeg

---
 client_examples/vnc2mpg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/client_examples/vnc2mpg.c b/client_examples/vnc2mpg.c
index 284f4b5..bfce619 100644
--- a/client_examples/vnc2mpg.c
+++ b/client_examples/vnc2mpg.c
@@ -71,6 +71,7 @@ AVStream *add_video_stream(AVFormatContext *oc, int codec_id, int w, int h)
 #else
     c->time_base.den = STREAM_FRAME_RATE;
     c->time_base.num = 1;
+    c->pix_fmt = PIX_FMT_YUV420P;
 #endif
     c->gop_size = 12; /* emit one intra frame every twelve frames at most */
     if (c->codec_id == CODEC_ID_MPEG2VIDEO) {
-- 
cgit v1.2.3

