mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 14:30:00 +01:00
Compare commits
4 Commits
af737ace1e
...
fe72a8781b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe72a8781b | ||
|
|
b5996929df | ||
|
|
371d717601 | ||
|
|
1447aac2eb |
@@ -248,7 +248,7 @@ static void framesync_inject_frame(FFFrameSync *fs, unsigned in, AVFrame *frame)
|
||||
|
||||
av_assert0(!fs->in[in].have_next);
|
||||
av_assert0(frame);
|
||||
pts = av_rescale_q(frame->pts, fs->in[in].time_base, fs->time_base);
|
||||
pts = av_rescale_q_rnd(frame->pts, fs->in[in].time_base, fs->time_base, AV_ROUND_NEAR_INF | AV_ROUND_PASS_MINMAX);
|
||||
frame->pts = pts;
|
||||
fs->in[in].frame_next = frame;
|
||||
fs->in[in].pts_next = pts;
|
||||
|
||||
@@ -944,7 +944,7 @@ static int do_scale(FFFrameSync *fs)
|
||||
goto err;
|
||||
|
||||
av_assert0(out);
|
||||
out->pts = av_rescale_q(fs->pts, fs->time_base, outlink->time_base);
|
||||
out->pts = av_rescale_q_rnd(fs->pts, fs->time_base, outlink->time_base, AV_ROUND_NEAR_INF | AV_ROUND_PASS_MINMAX);
|
||||
return ff_filter_frame(outlink, out);
|
||||
|
||||
err:
|
||||
|
||||
@@ -406,6 +406,9 @@ static int scalable_channel_layout_config(void *s, AVIOContext *pb,
|
||||
.nb_channels = substream_count +
|
||||
coupled_substream_count };
|
||||
|
||||
if (i && ch_layout.nb_channels <= audio_element->element->layers[i-1]->ch_layout.nb_channels)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
for (int j = 0; j < substream_count; j++) {
|
||||
IAMFSubStream *substream = &audio_element->substreams[k++];
|
||||
|
||||
@@ -477,6 +480,9 @@ static int scalable_channel_layout_config(void *s, AVIOContext *pb,
|
||||
av_channel_layout_copy(&layer->ch_layout, &ch_layout);
|
||||
}
|
||||
|
||||
if (k != audio_element->nb_substreams)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user