Skip to content

Commit

Permalink
fixed bug in decoder (#2946)
Browse files Browse the repository at this point in the history
Co-authored-by: pfeatherstone <pfeatherstone@pf>
  • Loading branch information
pfeatherstone and pfeatherstone committed Apr 12, 2024
1 parent 2dbc7b9 commit 48e6331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlib/media/ffmpeg_demuxer.h
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,8 @@ namespace dlib
if (ok && packet->size > 0)
ok = push(packet, std::forward<Callback>(clb));

// If flushing, only flush parser once, so break
if (flushing)
// If flushing, you keep parsing until you get an empty packet
if (packet->size == 0 && flushing)
break;
}

Expand Down

0 comments on commit 48e6331

Please sign in to comment.