mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
fftools/ffmpeg_demux, sync_queue: Constify a bit
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b295aafb08
commit
6c693da690
@ -161,7 +161,7 @@ InputStream *ist_find_unused(enum AVMediaType type)
|
|||||||
|
|
||||||
static void report_new_stream(Demuxer *d, const AVPacket *pkt)
|
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)
|
if (pkt->stream_index < d->nb_streams_warn)
|
||||||
return;
|
return;
|
||||||
|
@ -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 */
|
/* signal a fake timestamp for all streams that prevent tail_ts from being output */
|
||||||
tail_ts++;
|
tail_ts++;
|
||||||
for (unsigned int i = 0; i < sq->nb_streams; i++) {
|
for (unsigned int i = 0; i < sq->nb_streams; i++) {
|
||||||
SyncQueueStream *st1 = &sq->streams[i];
|
const SyncQueueStream *st1 = &sq->streams[i];
|
||||||
int64_t ts;
|
int64_t ts;
|
||||||
|
|
||||||
if (st == st1 || st1->finished ||
|
if (st == st1 || st1->finished ||
|
||||||
@ -524,7 +524,7 @@ fail:
|
|||||||
static int receive_for_stream(SyncQueue *sq, unsigned int stream_idx,
|
static int receive_for_stream(SyncQueue *sq, unsigned int stream_idx,
|
||||||
SyncQueueFrame frame)
|
SyncQueueFrame frame)
|
||||||
{
|
{
|
||||||
SyncQueueStream *st_head = sq->head_stream >= 0 ?
|
const SyncQueueStream *st_head = sq->head_stream >= 0 ?
|
||||||
&sq->streams[sq->head_stream] : NULL;
|
&sq->streams[sq->head_stream] : NULL;
|
||||||
SyncQueueStream *st;
|
SyncQueueStream *st;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user