[Ffmpeg-devel] apiexample fix

Chip szarlada
Mon Jun 6 13:27:15 CEST 2005


Hi,

I found the cause of problem during encoding in the apiexample.
Here is my patch to fix it.

Chip...
-------------- next part --------------
--- apiexample.c-old	2005-06-06 13:23:09.000000000 +0200
+++ apiexample.c	2005-06-06 13:23:37.000000000 +0200
@@ -199,6 +199,7 @@
     c->frame_rate_base= 1;
     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) {



More information about the ffmpeg-devel mailing list