summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2017-02-11 16:53:34 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2017-02-12 13:57:59 +0100
commit79d232fc9f1ff91f7ed96bdfddf47ad5ee232b47 (patch)
treebaca529b8af8904b46390e37ade8686a739bb20c /libavformat/mpegts.c
parent5979fb0b1ec3637dc1ce26313eb89bf009923fb0 (diff)
downloadffmpeg-79d232fc9f1ff91f7ed96bdfddf47ad5ee232b47.tar.gz
lavf/mpegts: Make a pointer cast explicit.
Silences an "assignment discards ‘const’ qualifier" warning. Reviewed-by: Marton Balint
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
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;
}