# HG changeset patch # User michael # Date 1118177835 0 # Node ID dfcfaeed167936559af339363610ca13fd0e7aac # Parent 3dc4bfdda4b3003a8a7c970f90e7e8119eeda95b apiexample fix by (Chip: szarlada, freemail hu) diff -r 3dc4bfdda4b3 -r dfcfaeed1679 apiexample.c --- 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) {