diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-02-11 18:53:34 +0300 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-02-12 15:57:59 +0300 |
commit | 79d232fc9f1ff91f7ed96bdfddf47ad5ee232b47 (patch) | |
tree | baca529b8af8904b46390e37ade8686a739bb20c /libavformat | |
parent | 5979fb0b1ec3637dc1ce26313eb89bf009923fb0 (diff) |
lavf/mpegts: Make a pointer cast explicit.
Silences an "assignment discards ‘const’ qualifier" warning.
Reviewed-by: Marton Balint
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mpegts.c | 2 |
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; } |