Commit b67837f7 authored by reimar's avatar reimar

Use context instead of NULL for logging.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20085 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 58d23b6f
...@@ -631,7 +631,7 @@ static int dv_decode_video_segment(AVCodecContext *avctx, void *arg) ...@@ -631,7 +631,7 @@ static int dv_decode_video_segment(AVCodecContext *avctx, void *arg)
dv_decode_ac(&gb, mb, block); dv_decode_ac(&gb, mb, block);
} }
if (mb->pos >= 64 && mb->pos < 127) if (mb->pos >= 64 && mb->pos < 127)
av_log(NULL, AV_LOG_ERROR, "AC EOB marker is absent pos=%d\n", mb->pos); av_log(avctx, AV_LOG_ERROR, "AC EOB marker is absent pos=%d\n", mb->pos);
block += 64; block += 64;
mb++; mb++;
} }
...@@ -1099,7 +1099,7 @@ static int dv_encode_video_segment(AVCodecContext *avctx, void *arg) ...@@ -1099,7 +1099,7 @@ static int dv_encode_video_segment(AVCodecContext *avctx, void *arg)
if (enc_blks[j].partial_bit_count) if (enc_blks[j].partial_bit_count)
pb = dv_encode_ac(&enc_blks[j], pb, &pbs[s->sys->bpm*5]); pb = dv_encode_ac(&enc_blks[j], pb, &pbs[s->sys->bpm*5]);
if (enc_blks[j].partial_bit_count) if (enc_blks[j].partial_bit_count)
av_log(NULL, AV_LOG_ERROR, "ac bitstream overflow\n"); av_log(avctx, AV_LOG_ERROR, "ac bitstream overflow\n");
} }
for (j=0; j<5*s->sys->bpm; j++) { for (j=0; j<5*s->sys->bpm; j++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment