aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/sync_queue.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-28 20:06:07 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-02 02:51:59 +0100
commit6c693da690d2618b36c801f0b10607a4f68eaad6 (patch)
treeeb58761f9597a5f1d5d0c3d7d2e194ec06a321ec /fftools/sync_queue.c
parentb295aafb08209a76b0052b9163a4f2e0c533ba1e (diff)
downloadffmpeg-6c693da690d2618b36c801f0b10607a4f68eaad6.tar.gz
fftools/ffmpeg_demux, sync_queue: Constify a bit
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'fftools/sync_queue.c')
-rw-r--r--fftools/sync_queue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fftools/sync_queue.c b/fftools/sync_queue.c
index bc107ba4fe..0e35b5b1cb 100644
--- a/fftools/sync_queue.c
+++ b/fftools/sync_queue.c
@@ -319,7 +319,7 @@ static int overflow_heartbeat(SyncQueue *sq, int stream_idx)
/* signal a fake timestamp for all streams that prevent tail_ts from being output */
tail_ts++;
for (unsigned int i = 0; i < sq->nb_streams; i++) {
- SyncQueueStream *st1 = &sq->streams[i];
+ const SyncQueueStream *st1 = &sq->streams[i];
int64_t ts;
if (st == st1 || st1->finished ||
@@ -524,8 +524,8 @@ fail:
static int receive_for_stream(SyncQueue *sq, unsigned int stream_idx,
SyncQueueFrame frame)
{
- SyncQueueStream *st_head = sq->head_stream >= 0 ?
- &sq->streams[sq->head_stream] : NULL;
+ const SyncQueueStream *st_head = sq->head_stream >= 0 ?
+ &sq->streams[sq->head_stream] : NULL;
SyncQueueStream *st;
av_assert0(stream_idx < sq->nb_streams);