You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
av(format|device): Add const to muxer packet data pointers
The packets given to muxers need not be writable, so it is best to access them via const uint8_t*. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -96,7 +96,7 @@ static void sample_queue_free(HintSampleQueue *queue)
|
||||
* not copied. sample_queue_retain should be called before pkt->data
|
||||
* is reused/freed.
|
||||
*/
|
||||
static void sample_queue_push(HintSampleQueue *queue, uint8_t *data, int size,
|
||||
static void sample_queue_push(HintSampleQueue *queue, const uint8_t *data, int size,
|
||||
int sample)
|
||||
{
|
||||
/* No need to keep track of smaller samples, since describing them
|
||||
|
||||
Reference in New Issue
Block a user