Skip to content

Commit

Permalink
Fix coverity issue (#5734)
Browse files Browse the repository at this point in the history
Signed-off-by: Rafal Banas <rbanas@nvidia.com>
  • Loading branch information
banasraf authored Dec 5, 2024
1 parent eacf905 commit 6c3f9db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dali/operators/reader/loader/video_loader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,8 @@ void VideoLoader::read_file() {
continue;
}

DALI_ENFORCE(pkt, "Failed to read frames.");

if (key) {
last_key_frame = frame;
if (frame < previous_last_key_frame) {
Expand Down

0 comments on commit 6c3f9db

Please sign in to comment.