Showing the changes to libavcodec/api-example.c (1 of 296 files). Show all
Unified · Split
| @@ -345,7 +345,7 @@ static void video_encode_example(const char *filename) · 344 unmodified lines | ||
| 345 | 345 | c->time_base= (AVRational){1,25}; |
| 346 | 346 | c->gop_size = 10; /* emit one intra frame every ten frames */ |
| 347 | 347 | c->max_b_frames=1; |
| 348 | − c->pix_fmt = PIX_FMT_YUV420P; | |
| 348 | + c->pix_fmt = AV_PIX_FMT_YUV420P; | |
| 349 | 349 | |
| 350 | 350 | /* open it */ |
| 351 | 351 | if (avcodec_open2(c, codec, NULL) < 0) { |