Commit 7c559bc7 authored by Stefano Sabatini's avatar Stefano Sabatini

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
parent f7ead94c
...@@ -113,6 +113,8 @@ static int targa_encode_frame(AVCodecContext *avctx, ...@@ -113,6 +113,8 @@ static int targa_encode_frame(AVCodecContext *avctx,
outbuf[16] = 24; /* bpp */ outbuf[16] = 24; /* bpp */
break; break;
default: default:
av_log(avctx, AV_LOG_ERROR, "Pixel format '%s' not supported.\n",
avcodec_get_pix_fmt_name(avctx->pix_fmt));
return -1; return -1;
} }
bpp = outbuf[16] >> 3; bpp = outbuf[16] >> 3;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment