Commit e514b6b4 authored by François Cartegnie's avatar François Cartegnie 🤞

codec: opus: fix comment leak

parent eda1ff2d
......@@ -376,7 +376,7 @@ int opus_write_header(uint8_t **p_extra, int *i_extra, OpusHeader *header, const
const int packet_size = opus_header_to_packet(header, header_data,
sizeof(header_data));
unsigned char *data[2];
const unsigned char *data[2];
size_t size[2];
data[0] = header_data;
......@@ -415,6 +415,8 @@ int opus_write_header(uint8_t **p_extra, int *i_extra, OpusHeader *header, const
}
}
free(comments);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment