[FFmpeg-cvslog] r25454 - trunk/libavcodec/targaenc.c
stefano
subversion
Tue Oct 12 20:44:25 CEST 2010
Author: stefano
Date: Tue Oct 12 20:44:25 2010
New Revision: 25454
Log:
Targa encoder: log error message in case the pixel format in input is
not supported.
Modified:
trunk/libavcodec/targaenc.c
Modified: trunk/libavcodec/targaenc.c
==============================================================================
--- trunk/libavcodec/targaenc.c Tue Oct 12 20:40:26 2010 (r25453)
+++ trunk/libavcodec/targaenc.c Tue Oct 12 20:44:25 2010 (r25454)
@@ -113,6 +113,8 @@ static int targa_encode_frame(AVCodecCon
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;
More information about the ffmpeg-cvslog
mailing list