Skip to content
Snippets Groups Projects
Commit 79d232fc authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos
Browse files

lavf/mpegts: Make a pointer cast explicit.

Silences an "assignment discards ‘const’ qualifier" warning.

Reviewed-by: Marton Balint
parent 5979fb0b
No related branches found
No related tags found
No related merge requests found
...@@ -881,7 +881,7 @@ static void reset_pes_packet_state(PESContext *pes) ...@@ -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) static void new_data_packet(const uint8_t *buffer, int len, AVPacket *pkt)
{ {
av_init_packet(pkt); av_init_packet(pkt);
pkt->data = buffer; pkt->data = (uint8_t *)buffer;
pkt->size = len; pkt->size = len;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment