aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-12 18:44:25 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-12 18:44:25 +0000
commit7c559bc77ea0ebb5630027032b452562eb82048c (patch)
tree60dbc7a8f22eed74d00c9efad4859be5d267fc4e
parentf7ead94c69bf7b7f8ef63fbe8c869982e2bb5048 (diff)
downloadffmpeg-7c559bc77ea0ebb5630027032b452562eb82048c.tar.gz
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
-rw-r--r--libavcodec/targaenc.c2
1 files changed, 2 insertions, 0 deletions
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;