mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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
This commit is contained in:
parent
f7ead94c69
commit
7c559bc77e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user