changeset 2760:dfcfaeed1679 libavcodec

apiexample fix by (Chip: szarlada, freemail hu)
author michael
date Tue, 07 Jun 2005 20:57:15 +0000
parents 3dc4bfdda4b3
children a1f71e17054c
files apiexample.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/apiexample.c	Tue Jun 07 14:12:15 2005 +0000
+++ b/apiexample.c	Tue Jun 07 20:57:15 2005 +0000
@@ -198,6 +198,7 @@
     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) {