mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
CVE-2023-51796
Signed-off-by: ziyugao <gaoziyu0614@outlook.com>
This commit is contained in:
parent
0bb69b4677
commit
be83c03e68
@ -253,7 +253,8 @@ static int areverse_request_frame(AVFilterLink *outlink)
|
||||
if (ret == AVERROR_EOF && s->nb_frames > 0) {
|
||||
AVFrame *out = s->frames[s->nb_frames - 1];
|
||||
out->pts = s->pts[s->flush_idx++] - s->nb_samples;
|
||||
s->nb_samples += s->pts[s->flush_idx] - s->pts[s->flush_idx - 1] - out->nb_samples;
|
||||
if (s->nb_frames > 1)
|
||||
s->nb_samples += s->pts[s->flush_idx] - s->pts[s->flush_idx - 1] - out->nb_samples;
|
||||
|
||||
if (av_sample_fmt_is_planar(out->format))
|
||||
reverse_samples_planar(out);
|
||||
|
Loading…
Reference in New Issue
Block a user