Commit 6cc21d0e authored by Tobias Conradi's avatar Tobias Conradi Committed by Felix Paul Kühne

videotoolbox: fix crash if timestamps array is empty

Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 4b1a1155
......@@ -1027,8 +1027,11 @@ skip:
}
return (NSComparisonResult)NSOrderedSame;
}];
timeStamp = [p_sys->outputTimeStamps firstObject];
[p_sys->outputTimeStamps removeObjectAtIndex:0];
NSArray *timeStamps = p_sys->outputTimeStamps;
timeStamp = [timeStamps firstObject];
if (timeStamps.count>0) {
[timeStamps removeObjectAtIndex:0];
}
}
@synchronized(p_sys->outputFrames) {
......
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