summaryrefslogtreecommitdiff
path: root/libavcodec/mpc7.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-02-17 14:51:29 -0800
committerRonald S. Bultje <rsbultje@gmail.com>2012-02-17 15:28:35 -0800
commitc0994e39d7fd63b4f4adfe4714fa6e41bff82a7c (patch)
tree00ef872f205aada3e6f87ade1539304013d4f4a9 /libavcodec/mpc7.c
parent84c202cc37024bd78261e4222e46631ea73c48dd (diff)
downloadffmpeg-c0994e39d7fd63b4f4adfe4714fa6e41bff82a7c.tar.gz
mpc7: assign an error level + context to av_log() msg.
Diffstat (limited to 'libavcodec/mpc7.c')
-rw-r--r--libavcodec/mpc7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpc7.c b/libavcodec/mpc7.c
index 0739bf2b2f..2e8271a120 100644
--- a/libavcodec/mpc7.c
+++ b/libavcodec/mpc7.c
@@ -298,7 +298,7 @@ static int mpc7_decode_frame(AVCodecContext * avctx, void *data,
bits_used = get_bits_count(&gb);
bits_avail = buf_size * 8;
if (!last_frame && ((bits_avail < bits_used) || (bits_used + 32 <= bits_avail))) {
- av_log(NULL,0, "Error decoding frame: used %i of %i bits\n", bits_used, bits_avail);
+ av_log(avctx, AV_LOG_ERROR, "Error decoding frame: used %i of %i bits\n", bits_used, bits_avail);
return -1;
}
if(c->frames_to_skip){