Commit fb96ac46 authored by Michael Niedermayer's avatar Michael Niedermayer

nutdec: fix mixup of nb_streams and timebase_count

Fixes out of array read, should fix ffprove fate failure
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6ab1166c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment