From a7cc43047fea24f9f9fb709be0761b97f2dd4021 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michaelni@gmx.at> Date: Tue, 7 Jun 2005 20:57:15 +0000 Subject: [PATCH] apiexample fix by (Chip: szarlada, freemail hu) Originally committed as revision 4357 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/apiexample.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c index 859853808ca..b92eb6205d9 100644 --- a/libavcodec/apiexample.c +++ b/libavcodec/apiexample.c @@ -198,6 +198,7 @@ void video_encode_example(const char *filename) c->time_base= (AVRational){1,25}; c->gop_size = 10; /* emit one intra frame every ten frames */ c->max_b_frames=1; + c->pix_fmt = PIX_FMT_YUV420P; /* open it */ if (avcodec_open(c, codec) < 0) { -- GitLab