summaryrefslogtreecommitdiffstats
path: root/libavcodec/apiexample.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/apiexample.c')
-rw-r--r--libavcodec/apiexample.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c
index 8598538..b92eb62 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) {
OpenPOWER on IntegriCloud