aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-09-13 17:00:16 +0200
committerDiego Biurrun <diego@biurrun.de>2011-09-21 09:57:32 +0200
commit35a68558688fb6fa62261008e93bd16544fbd37e (patch)
treee16832dc69fb6f37737cd5d41ce4d77a6e70b4e7
parentbe4e8908d2ccc80a0603514b95499cd4380e8f81 (diff)
downloadffmpeg-35a68558688fb6fa62261008e93bd16544fbd37e.tar.gz
Fix av_dlog invocations with wrong or missing logging context.
This fixes build failures with -DDEBUG in CPPFLAGS.
-rw-r--r--libavcodec/flashsvenc.c2
-rw-r--r--libavformat/mpegts.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c
index 6dc33b91f9..81aa5b6bfb 100644
--- a/libavcodec/flashsvenc.c
+++ b/libavcodec/flashsvenc.c
@@ -176,7 +176,7 @@ static int encode_bitstream(FlashSVContext *s, AVFrame *p, uint8_t *buf,
bytestream_put_be16(&ptr, zsize);
buf_pos += zsize + 2;
- av_dlog(avctx, "buf_pos = %d\n", buf_pos);
+ av_dlog(s->avctx, "buf_pos = %d\n", buf_pos);
} else {
pred_blocks++;
bytestream_put_be16(&ptr, 0);
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 16f69328a0..c625552600 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1409,7 +1409,7 @@ static int handle_packets(MpegTSContext *ts, int nb_packets)
if (avio_tell(s->pb) != ts->last_pos) {
int i;
- av_dlog("Skipping after seek\n");
+ av_dlog(ts->stream, "Skipping after seek\n");
/* seek detected, flush pes buffer */
for (i = 0; i < NB_PID_MAX; i++) {
if (ts->pids[i]) {