mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
nutdec: fix mixup of nb_streams and timebase_count
Fixes out of array read, should fix ffprove fate failure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6ab1166c77
commit
fb96ac469a
@ -548,8 +548,8 @@ static int decode_syncpoint(NUTContext *nut, int64_t *ts, int64_t *back_ptr)
|
||||
return -1;
|
||||
}
|
||||
|
||||
*ts = tmp / s->nb_streams *
|
||||
av_q2d(nut->time_base[tmp % s->nb_streams]) * AV_TIME_BASE;
|
||||
*ts = tmp / nut->time_base_count *
|
||||
av_q2d(nut->time_base[tmp % nut->time_base_count]) * AV_TIME_BASE;
|
||||
ff_nut_add_sp(nut, nut->last_syncpoint_pos, *back_ptr, *ts);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user