From 6e9a4142fd2fb6cb8241bb31da2e87c9cf5b7fb9 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 21 Aug 2023 10:24:24 +0200 Subject: [PATCH] Revert "lavd video: don't print false positive errs" This reverts commit d4be2d97b586354bc67488000768ea00bf0419d7. The fix was not correct, because it just hided the root of the problem - the av_parser_parse2 needs final call with buf_size == 0 to flush last frame. Otherwise it will remain in the queue, effectivelly adding a delay by one frame, because the particular frame will get flushed when processing next frame. See also: --- src/video_decompress/libavcodec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/video_decompress/libavcodec.c b/src/video_decompress/libavcodec.c index f0ebcfd33..0e1150e7d 100644 --- a/src/video_decompress/libavcodec.c +++ b/src/video_decompress/libavcodec.c @@ -996,7 +996,6 @@ decode_frame(struct state_libavcodec_decompress *s, unsigned char *src, } } if (s->pkt->size == 0) { - ret = 0; break; } src += ret;