[FFmpeg-cvslog] Fix av_dlog invocations with wrong or missing logging context.
Diego Biurrun
git at videolan.org
Wed Sep 21 21:34:04 CEST 2011
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Tue Sep 13 17:00:16 2011 +0200| [35a68558688fb6fa62261008e93bd16544fbd37e] | committer: Diego Biurrun
Fix av_dlog invocations with wrong or missing logging context.
This fixes build failures with -DDEBUG in CPPFLAGS.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=35a68558688fb6fa62261008e93bd16544fbd37e
---
libavcodec/flashsvenc.c | 2 +-
libavformat/mpegts.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c
index 6dc33b9..81aa5b6 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 16f6932..c625552 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]) {
More information about the ffmpeg-cvslog
mailing list