changeset 4128:2e93c877d264 libavcodec

Use bpp from header in error message
author kostya
date Fri, 03 Nov 2006 04:42:11 +0000
parents d011a097bb85
children c5117bef5175
files targa.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/targa.c	Fri Nov 03 02:03:56 2006 +0000
+++ b/targa.c	Fri Nov 03 04:42:11 2006 +0000
@@ -129,7 +129,7 @@
         avctx->pix_fmt = PIX_FMT_BGR24;
         break;
     default:
-        av_log(avctx, AV_LOG_ERROR, "Bit depth %i is not supported\n", avctx->bits_per_sample);
+        av_log(avctx, AV_LOG_ERROR, "Bit depth %i is not supported\n", s->bpp);
         return -1;
     }