mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 02:48:25 -05:00
Add check for dereferencing nullptr
This commit is contained in:
@@ -103,6 +103,9 @@ void FfmpegTileProvider::update() {
|
||||
|
||||
// Read frame
|
||||
do {
|
||||
if (!_formatContext || !_packet) {
|
||||
break;
|
||||
}
|
||||
int result = av_read_frame(_formatContext, _packet);
|
||||
if (result < 0) {
|
||||
av_packet_unref(_packet);
|
||||
|
||||
Reference in New Issue
Block a user