mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 14:30:00 +01:00
Compare commits
4 Commits
9e3030bc44
...
c0e599e9d8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0e599e9d8 | ||
|
|
46293e9905 | ||
|
|
9403cdd6e8 | ||
|
|
a2a6728285 |
@@ -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;
|
||||
|
||||
@@ -1119,7 +1119,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
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:
|
||||
|
||||
@@ -398,6 +398,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++];
|
||||
|
||||
@@ -411,6 +414,9 @@ static int scalable_channel_layout_config(void *s, AVIOContext *pb,
|
||||
|
||||
}
|
||||
|
||||
if (k != audio_element->nb_substreams)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user