1
0
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:
Andreas Rheinhardt
2022-07-04 18:08:14 +02:00
parent 417554bdd6
commit d5a0eba8a2
12 changed files with 16 additions and 15 deletions

View File

@@ -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