From cdf15dec5cfb777438a30a2df7dd6c215e0dac74 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 8 May 2010 22:44:07 +0200 Subject: [PATCH] Remove debugging messages --- libavformat/aviobuf.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 601ea4fc7..901103b70 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -91,7 +91,6 @@ static void flush_buffer_o_direct(ByteIOContext *s) to_write = (data_len + BLOCK_SIZE - 1) & ~(BLOCK_SIZE - 1); } - av_log(NULL, AV_LOG_ERROR, " really writing %zx\n", to_write); if (data_len > 0) { if (s->write_packet && !s->error){ int ret= s->write_packet(s->opaque, s->buffer, to_write); @@ -111,14 +110,11 @@ static void flush_buffer_o_direct(ByteIOContext *s) s->buf_ptr -= to_write; } else s->buf_ptr = s->buffer; - - //av_log(NULL, AV_LOG_ERROR, "ZZZ tw=%zu, pos=%zd\n", to_write, s->pos); } } static void flush_buffer(ByteIOContext *s) { - av_log(NULL, AV_LOG_ERROR, "WRITE %p: pos=%zx len=%zx\n", s, s->pos, s->buf_ptr - s->buffer); if (s->o_direct_flag) { flush_buffer_o_direct(s); return; @@ -190,16 +186,12 @@ int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence) return offset1; offset += offset1; } - //if (s->o_direct_flag) - av_log(NULL, AV_LOG_ERROR, "SEEK %p: from %llx to %llx\n", s, pos, offset); offset1 = offset - pos; if (!s->must_flush && offset1 >= 0 && offset1 <= (s->buf_end - s->buffer)) { /* can do the seek inside the buffer */ s->buf_ptr = s->buffer + offset1; - if (s->o_direct_flag) - av_log(NULL, AV_LOG_ERROR, "Internal seek by %llx\n", offset1); } else if(s->is_streamed && !s->write_flag && offset1 >= 0 && offset1 < (s->buf_end - s->buffer) + (1<<16)){ while(s->pos < offset && !s->eof_reached) @@ -222,7 +214,6 @@ int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence) offset1 = offset & ~(BLOCK_SIZE - 1); if (!s->seek || (res = s->seek(s->opaque, offset1, SEEK_SET)) < 0) return res; - av_log(NULL, AV_LOG_ERROR, "READ block from %llx\n", offset1); if ((res = s->read_packet(s->opaque, s->buffer, BLOCK_SIZE)) < 0) return res; if (!s->seek || (res = s->seek(s->opaque, offset1, SEEK_SET)) < 0) -- 2.39.2