summaryrefslogtreecommitdiff
path: root/libavformat/srtenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/srtenc.c')
-rw-r--r--libavformat/srtenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/srtenc.c b/libavformat/srtenc.c
index d811a4da0e..484dd4d230 100644
--- a/libavformat/srtenc.c
+++ b/libavformat/srtenc.c
@@ -61,7 +61,8 @@ static int srt_write_packet(AVFormatContext *avf, AVPacket *pkt)
SRTContext *srt = avf->priv_data;
int64_t s = pkt->pts, e, d = pkt->duration;
- int size, x1 = -1, y1 = -1, x2 = -1, y2 = -1;
+ buffer_size_t size;
+ int x1 = -1, y1 = -1, x2 = -1, y2 = -1;
const uint8_t *p;
p = av_packet_get_side_data(pkt, AV_PKT_DATA_SUBTITLE_POSITION, &size);