diff options
author | wm4 <wm4@nowhere> | 2016-12-07 19:44:29 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-12-07 19:53:11 +0100 |
commit | 3eceac2eab0b42ee082a0b615ebf40a21f0fb915 (patch) | |
tree | a7f719897b49f44006d44a1efcdab3b8d203aad8 /video/image_writer.c | |
parent | a660e15c9b96bd46209e78b3c3d4cf136a039a50 (diff) | |
download | mpv-3eceac2eab0b42ee082a0b615ebf40a21f0fb915.tar.bz2 mpv-3eceac2eab0b42ee082a0b615ebf40a21f0fb915.tar.xz |
Remove compatibility things
Possible with bumped FFmpeg/Libav.
These are just the simple cases.
Diffstat (limited to 'video/image_writer.c')
-rw-r--r-- | video/image_writer.c | 6 |
1 files changed, 0 insertions, 6 deletions
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); |