Update FFMpeg API to new version

This commit is contained in:
Iwan Timmer
2016-03-06 12:44:26 +01:00
parent 6b5eef8572
commit 46c8c89baf
2 changed files with 11 additions and 13 deletions

View File

@@ -89,7 +89,7 @@ int ffmpeg_init(int width, int height, int perf_lvl, int thread_count) {
decoder_ctx->width = width;
decoder_ctx->height = height;
decoder_ctx->pix_fmt = PIX_FMT_YUV420P;
decoder_ctx->pix_fmt = AV_PIX_FMT_YUV420P;
int err = avcodec_open2(decoder_ctx, decoder, NULL);
if (err < 0) {