From 59ed74eeba60432f69c75dcdbb23401e7cca3ff9 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 21 Jan 2015 14:58:51 +0100 Subject: [PATCH] Libavcodec: fill some AVFrame members --- src/video_compress/libavcodec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_compress/libavcodec.cpp b/src/video_compress/libavcodec.cpp index 4a5aede82..8711cb753 100644 --- a/src/video_compress/libavcodec.cpp +++ b/src/video_compress/libavcodec.cpp @@ -470,7 +470,7 @@ static bool configure_with(struct state_video_compress_libav *s, struct video_de fprintf(stderr, "Could not allocate video frame\n"); return false; } -#if 0 +#if LIBAVCODEC_VERSION_MAJOR >= 53 s->in_frame->format = s->codec_ctx->pix_fmt; s->in_frame->width = s->codec_ctx->width; s->in_frame->height = s->codec_ctx->height;