diff options
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); |