summaryrefslogtreecommitdiffstats
path: root/client_examples/vnc2mpg.c
diff options
context:
space:
mode:
authordscho <dscho>2005-05-23 18:31:23 +0000
committerdscho <dscho>2005-05-23 18:31:23 +0000
commitdc1094f03c10c2d863a15f1d8638ea8742e42f32 (patch)
tree1a4829169906cd4e6b1063de89c00e7c169d84bc /client_examples/vnc2mpg.c
parenta49fb5104434116349dccde432ec27d9f379c53a (diff)
downloadlibtdevnc-dc1094f03c10c2d863a15f1d8638ea8742e42f32.tar.gz
libtdevnc-dc1094f03c10c2d863a15f1d8638ea8742e42f32.zip
work around bug in ffmpeg
Diffstat (limited to 'client_examples/vnc2mpg.c')
-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) {