From 79d232fc9f1ff91f7ed96bdfddf47ad5ee232b47 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sat, 11 Feb 2017 16:53:34 +0100 Subject: [PATCH] lavf/mpegts: Make a pointer cast explicit. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Silences an "assignment discards ‘const’ qualifier" warning. Reviewed-by: Marton Balint --- libavformat/mpegts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 0aa0ad77b8..590abb04f1 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -881,7 +881,7 @@ static void reset_pes_packet_state(PESContext *pes) static void new_data_packet(const uint8_t *buffer, int len, AVPacket *pkt) { av_init_packet(pkt); - pkt->data = buffer; + pkt->data = (uint8_t *)buffer; pkt->size = len; }