summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demux/demux.c2
-rw-r--r--demux/packet.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/demux/demux.c b/demux/demux.c
index b3048aacdd..5e47ce8601 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -1924,7 +1924,7 @@ static void add_packet_locked(struct sh_stream *stream, demux_packet_t *dp)
const char *num_pkts = queue->head == queue->tail ? "1" : ">1";
uint64_t fw_bytes = get_foward_buffered_bytes(ds);
- MP_TRACE(in, "append packet to %s: size=%d pts=%f dts=%f pos=%"PRIi64" "
+ MP_TRACE(in, "append packet to %s: size=%zu pts=%f dts=%f pos=%"PRIi64" "
"[num=%s size=%zd]\n", stream_type_name(stream->type),
dp->len, dp->pts, dp->dts, dp->pos, num_pkts, (size_t)fw_bytes);
diff --git a/demux/packet.h b/demux/packet.h
index 6822bce2c1..92b0129934 100644
--- a/demux/packet.h
+++ b/demux/packet.h
@@ -30,7 +30,7 @@ typedef struct demux_packet {
int64_t pos; // position in source file byte stream
unsigned char *buffer;
- int len;
+ size_t len;
int stream; // source stream index (typically sh_stream.index)