diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-06-07 20:57:15 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-06-07 20:57:15 +0000 |
commit | a7cc43047fea24f9f9fb709be0761b97f2dd4021 (patch) | |
tree | 760d8104a199cb7667b74f299a2dc77650d0462a /libavcodec/apiexample.c | |
parent | 59d8efb3403f58a8b1feec59ef408fb33c907abb (diff) | |
download | ffmpeg-a7cc43047fea24f9f9fb709be0761b97f2dd4021.tar.gz |
apiexample fix by (Chip: szarlada, freemail hu)
Originally committed as revision 4357 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/apiexample.c')
-rw-r--r-- | libavcodec/apiexample.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c index 859853808c..b92eb6205d 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) { |