projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84c202c
)
mpc7: assign an error level + context to av_log() msg.
author
Ronald S. Bultje
<rsbultje@gmail.com>
Fri, 17 Feb 2012 22:51:29 +0000
(14:51 -0800)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Fri, 17 Feb 2012 23:28:35 +0000
(15:28 -0800)
libavcodec/mpc7.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpc7.c
b/libavcodec/mpc7.c
index
0739bf2
..
2e8271a
100644
(file)
--- 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){