summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-10-13 15:50:13 +0200
committerCarl Hetherington <cth@carlh.net>2021-10-13 15:52:40 +0200
commitca44e3542214050de6cb8bbb223138765ac4bdb7 (patch)
tree37277bb85831252d7e5dae94389a6596fa588ccb /src/lib/ffmpeg_decoder.h
parent06ccbd71896e73221122ef61014dd64fe345536a (diff)
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.
Diffstat (limited to 'src/lib/ffmpeg_decoder.h')
-rw-r--r--src/lib/ffmpeg_decoder.h3
1 files changed, 0 insertions, 3 deletions
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<Image> _black_image;
std::map<std::shared_ptr<FFmpegAudioStream>, boost::optional<dcpomatic::ContentTime>> _next_time;