diff options
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 19c05a9c2f..ed4b347392 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -702,6 +702,11 @@ static void decode(struct dec_video *vd, struct demux_packet *packet, return; } + if (packet) { + // always fully consumed + packet->len = 0; + } + // Skipped frame, or delayed output due to multithreaded decoding. if (!got_picture) { if (!packet) |