summaryrefslogtreecommitdiffstats
path: root/video/image_writer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-03 12:28:46 +0100
committerwm4 <wm4@nowhere>2015-03-03 12:28:46 +0100
commitc31e5da734b4bd386e675926037d938b82671922 (patch)
treefd9c70715b32dd9b67364e1fe285b0eb78430e24 /video/image_writer.c
parent5808f1c408be958e90a302f42610fc59dfa0c373 (diff)
downloadmpv-c31e5da734b4bd386e675926037d938b82671922.tar.bz2
mpv-c31e5da734b4bd386e675926037d938b82671922.tar.xz
Remove some FFmpeg/Libav compatibility hacks
All of these are now in the supported FFmpeg and Libav versions. The 3 remaining API checks are for FFmpeg-only things.
Diffstat (limited to 'video/image_writer.c')
-rw-r--r--video/image_writer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/video/image_writer.c b/video/image_writer.c
index 700e1c4284..ab00b5bb01 100644
--- a/video/image_writer.c
+++ b/video/image_writer.c
@@ -133,12 +133,10 @@ static int write_lavc(struct image_writer_ctx *ctx, mp_image_t *image, FILE *fp)
pic->format = avctx->pix_fmt;
pic->width = avctx->width;
pic->height = avctx->height;
-#if HAVE_AVFRAME_CSP
if (ctx->opts->tag_csp) {
pic->color_primaries = mp_csp_prim_to_avcol_pri(image->params.primaries);
pic->color_trc = mp_csp_trc_to_avcol_trc(image->params.gamma);
}
-#endif
int ret = avcodec_encode_video2(avctx, &pkt, pic, &got_output);
if (ret < 0)
goto error_exit;