]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Remove debugging messages
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 8 May 2010 20:44:07 +0000 (22:44 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 8 May 2010 20:44:07 +0000 (22:44 +0200)
libavformat/aviobuf.c

index 601ea4fc70a949988add8c6ca1c5859be4c02e2a..901103b701d7226e0064ee38605b465617d5d850 100644 (file)
@@ -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)