From 7c559bc77ea0ebb5630027032b452562eb82048c Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Tue, 12 Oct 2010 18:44:25 +0000 Subject: Targa encoder: log error message in case the pixel format in input is not supported. Originally committed as revision 25454 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/targaenc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/targaenc.c') diff --git a/libavcodec/targaenc.c b/libavcodec/targaenc.c index e5d0042ecb..325df46a9f 100644 --- a/libavcodec/targaenc.c +++ b/libavcodec/targaenc.c @@ -113,6 +113,8 @@ static int targa_encode_frame(AVCodecContext *avctx, outbuf[16] = 24; /* bpp */ break; default: + av_log(avctx, AV_LOG_ERROR, "Pixel format '%s' not supported.\n", + avcodec_get_pix_fmt_name(avctx->pix_fmt)); return -1; } bpp = outbuf[16] >> 3; -- cgit v1.2.3