From ca44e3542214050de6cb8bbb223138765ac4bdb7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 13 Oct 2021 15:50:13 +0200 Subject: Ignore errors from avcodec_send_packet. After seeking it appears that we often get irrelevant errors from this method. ffplay.c seems to ignore them, and this commit means that we do too (just logging them). I think these errors during a non-seeking "encoding" run could be cause for concern; perhaps we should take more note of them in that case. --- src/lib/ffmpeg_decoder.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/lib/ffmpeg_decoder.h') diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index def824feb..fce3fcae9 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -79,9 +79,6 @@ private: /** true if we have a subtitle which has not had emit_stop called for it yet */ bool _have_current_subtitle = false; - /** number of errors from avcodec_send_packet to ignore */ - int _errors_to_ignore = 0; - std::shared_ptr _black_image; std::map, boost::optional> _next_time; -- cgit v1.2.3