]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/targaenc.c
fft: avoid a signed overflow
[ffmpeg] / libavcodec / targaenc.c
index 828ab11c9453d15a06593203fb55f40844e98ca1..276bcc83eb98388404a4e541ecf48ce021074f99 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include "libavutil/intreadwrite.h"
+#include "libavutil/pixdesc.h"
 #include "avcodec.h"
 #include "rle.h"
 #include "targa.h"
@@ -119,7 +120,7 @@ static int targa_encode_frame(AVCodecContext *avctx,
         break;
     default:
         av_log(avctx, AV_LOG_ERROR, "Pixel format '%s' not supported.\n",
-               avcodec_get_pix_fmt_name(avctx->pix_fmt));
+               av_get_pix_fmt_name(avctx->pix_fmt));
         return AVERROR(EINVAL);
     }
     bpp = outbuf[16] >> 3;