Silences an "assignment discards ‘const’ qualifier" warning.
Showing the changes to libavformat (1 of 1 file). Show all
Unified · Split
| @@ -881,7 +881,7 @@ static void reset_pes_packet_state(PESContext *pes) · 880 unmodified lines | |||
| 881 | static void new_data_packet(const uint8_t *buffer, int len, AVPacket *pkt) | 881 | static void new_data_packet(const uint8_t *buffer, int len, AVPacket *pkt) |
| 882 | { | 882 | { |
| 883 | av_init_packet(pkt); | 883 | av_init_packet(pkt); |
| 884 | pkt->data = buffer; | 884 | pkt->data = (uint8_t *)buffer; |
| 885 | pkt->size = len; | 885 | pkt->size = len; |
| 886 | } | 886 | } |
| 887 | 887 | ||