From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Subject: [FFmpeg-devel] [PATCH 4/4] fftools/ffmpeg_demux, sync_queue: Constify a bit Date: Wed, 28 Feb 2024 20:07:31 +0100 Message-ID: <AS8P250MB0744F6A418C229F84C1A06208F582@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> (raw) In-Reply-To: <AS8P250MB07445CE3039102DE9655BAE68F582@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- fftools/ffmpeg_demux.c | 2 +- fftools/sync_queue.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index d5a3dbc1d2..29f4a26224 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -161,7 +161,7 @@ InputStream *ist_find_unused(enum AVMediaType type) static void report_new_stream(Demuxer *d, const AVPacket *pkt) { - AVStream *st = d->f.ctx->streams[pkt->stream_index]; + const AVStream *st = d->f.ctx->streams[pkt->stream_index]; if (pkt->stream_index < d->nb_streams_warn) return; 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); -- 2.40.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2024-02-28 19:06 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-28 19:06 [FFmpeg-devel] [PATCH 1/4] avformat/avio: Make avio_print_string_array() accept const pointers Andreas Rheinhardt 2024-02-28 19:07 ` [FFmpeg-devel] [PATCH 2/4] avutil/timestamp: Constify av_ts_make_time_string() Andreas Rheinhardt 2024-02-28 19:07 ` [FFmpeg-devel] [PATCH 3/4] swresample/swresample: Constify swr_convert() Andreas Rheinhardt 2024-02-28 19:07 ` Andreas Rheinhardt [this message] 2024-03-01 11:37 ` [FFmpeg-devel] [PATCH 1/4] avformat/avio: Make avio_print_string_array() accept const pointers Andreas Rheinhardt
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=AS8P250MB0744F6A418C229F84C1A06208F582@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM \ --to=andreas.rheinhardt@outlook.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git