mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
nutenc: check for negative index rather than assert
CC: libav-stable@libav.org Bug-Id: CID 703721
This commit is contained in:
parent
be42c0b8d5
commit
b69183f65d
@ -906,7 +906,10 @@ static int nut_write_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
frame_code = i;
|
||||
}
|
||||
}
|
||||
assert(frame_code != -1);
|
||||
|
||||
if (frame_code < 0)
|
||||
return AVERROR_BUG;
|
||||
|
||||
fc = &nut->frame_code[frame_code];
|
||||
flags = fc->flags;
|
||||
needed_flags = get_needed_flags(nut, nus, fc, pkt);
|
||||
|
Loading…
Reference in New Issue
Block a user