diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-10-12 18:44:25 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-10-12 18:44:25 +0000 |
commit | 7c559bc77ea0ebb5630027032b452562eb82048c (patch) | |
tree | 60dbc7a8f22eed74d00c9efad4859be5d267fc4e /libavcodec | |
parent | f7ead94c69bf7b7f8ef63fbe8c869982e2bb5048 (diff) | |
download | ffmpeg-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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/targaenc.c | 2 |
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; |