diff options
Diffstat (limited to 'video/decode')
-rw-r--r-- | video/decode/vd_lavc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index fa1d2ddf55..7217b2b9e7 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -683,6 +683,8 @@ static void decode(struct dec_video *vd, struct demux_packet *packet, if (ctx->hwdec_fail_count >= opts->software_fallback) ctx->hwdec_failed = true; } + if (!ctx->hwdec_failed && packet) + packet->len = 0; // skip failed packet return; } |