lavf/mpegts: Make a pointer cast explicit.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 11 Feb 2017 15:53:34 +0000 (16:53 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 12 Feb 2017 12:57:59 +0000 (13:57 +0100)
Silences an "assignment discards â€˜const’ qualifier" warning.

Reviewed-by: Marton Balint
libavformat/mpegts.c

index 0aa0ad7..590abb0 100644 (file)
@@ -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;
 }