Browse Source

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
tags/n0.8
Stefano Sabatini 15 years ago
parent
commit
7c559bc77e
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/targaenc.c

+ 2
- 0
libavcodec/targaenc.c View File

@@ -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…
Cancel
Save