lavf/mpegts: Make a pointer cast explicit.

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

Reviewed-by: Marton Balint
This commit is contained in:
Carl Eugen Hoyos 2017-02-11 16:53:34 +01:00
parent 5979fb0b1e
commit 79d232fc9f
1 changed files with 1 additions and 1 deletions

View 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;
}