Skip to content

Commit 48e6331

Browse files
pfeatherstonepfeatherstone
andauthored
fixed bug in decoder (#2946)
Co-authored-by: pfeatherstone <pfeatherstone@pf>
1 parent 2dbc7b9 commit 48e6331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dlib/media/ffmpeg_demuxer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,8 +1120,8 @@ namespace dlib
11201120
if (ok && packet->size > 0)
11211121
ok = push(packet, std::forward<Callback>(clb));
11221122

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

0 commit comments

Comments
 (0)