summaryrefslogtreecommitdiffstats
path: root/client_examples
diff options
context:
space:
mode:
Diffstat (limited to 'client_examples')
-rw-r--r--client_examples/vnc2mpg.c1
1 files changed, 1 insertions, 0 deletions
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) {