From e14f0fe56b9ef5f42864b42f6764375599712af9 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 11 Oct 2014 21:18:34 -0700 Subject: [PATCH] win-dshow: Fix integer size conversion warnings --- plugins/win-dshow/ffmpeg-decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/win-dshow/ffmpeg-decode.c b/plugins/win-dshow/ffmpeg-decode.c index b09670b3c..cf2bddcb8 100644 --- a/plugins/win-dshow/ffmpeg-decode.c +++ b/plugins/win-dshow/ffmpeg-decode.c @@ -122,7 +122,7 @@ int ffmpeg_decode_audio(struct ffmpeg_decode *decode, av_init_packet(&packet); packet.data = decode->packet_buffer; - packet.size = size; + packet.size = (int)size; if (!decode->frame) { decode->frame = avcodec_alloc_frame(); @@ -198,7 +198,7 @@ int ffmpeg_decode_video(struct ffmpeg_decode *decode, av_init_packet(&packet); packet.data = decode->packet_buffer; - packet.size = size; + packet.size = (int)size; packet.pts = *ts; if (decode->codec->id == AV_CODEC_ID_H264 && avc_keyframe(data, size))