From 3eceac2eab0b42ee082a0b615ebf40a21f0fb915 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 7 Dec 2016 19:44:29 +0100 Subject: Remove compatibility things Possible with bumped FFmpeg/Libav. These are just the simple cases. --- video/image_writer.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'video/image_writer.c') diff --git a/video/image_writer.c b/video/image_writer.c index 8a5980c98e..59d986f3fc 100644 --- a/video/image_writer.c +++ b/video/image_writer.c @@ -133,7 +133,6 @@ static bool write_lavc(struct image_writer_ctx *ctx, mp_image_t *image, FILE *fp pic->color_trc = mp_csp_trc_to_avcol_trc(image->params.color.gamma); } -#if HAVE_AVCODEC_NEW_CODEC_API int ret = avcodec_send_frame(avctx, pic); if (ret < 0) goto error_exit; @@ -142,11 +141,6 @@ static bool write_lavc(struct image_writer_ctx *ctx, mp_image_t *image, FILE *fp if (ret < 0) goto error_exit; got_output = 1; -#else - int ret = avcodec_encode_video2(avctx, &pkt, pic, &got_output); - if (ret < 0) - goto error_exit; -#endif fwrite(pkt.data, pkt.size, 1, fp); -- cgit v1.2.3