Browse Source

mpc7: assign an error level + context to av_log() msg.

tags/n0.11
Ronald S. Bultje 13 years ago
parent
commit
c0994e39d7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mpc7.c

+ 1
- 1
libavcodec/mpc7.c View File

@@ -298,7 +298,7 @@ static int mpc7_decode_frame(AVCodecContext * avctx, void *data,
bits_used = get_bits_count(&gb); bits_used = get_bits_count(&gb);
bits_avail = buf_size * 8; bits_avail = buf_size * 8;
if (!last_frame && ((bits_avail < bits_used) || (bits_used + 32 <= bits_avail))) { 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; return -1;
} }
if(c->frames_to_skip){ if(c->frames_to_skip){


Loading…
Cancel
Save