diff libmpcodecs/vf_screenshot.c @ 35715:8517826b0dbd

Replace CODEC_IDs their modern AV_-prefixed counterparts.
author diego
date Mon, 21 Jan 2013 19:44:53 +0000
parents d206960484fe
children 583523331410
line wrap: on
line diff
--- a/libmpcodecs/vf_screenshot.c	Mon Jan 21 19:44:49 2013 +0000
+++ b/libmpcodecs/vf_screenshot.c	Mon Jan 21 19:44:53 2013 +0000
@@ -301,7 +301,7 @@
     vf->priv->avctx = avcodec_alloc_context3(NULL);
     vf->priv->avctx->pix_fmt = PIX_FMT_RGB24;
     avcodec_register_all();
-    if (avcodec_open2(vf->priv->avctx, avcodec_find_encoder(CODEC_ID_PNG), NULL)) {
+    if (avcodec_open2(vf->priv->avctx, avcodec_find_encoder(AV_CODEC_ID_PNG), NULL)) {
         mp_msg(MSGT_VFILTER, MSGL_FATAL, "Could not open libavcodec PNG encoder\n");
         return 0;
     }