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:50:13 +0200
commita70e10c59ae1314a3d8e1d44e060dbfe1c7cb7e8 (patch)
tree9ac509f83e3a08dff606604f0d156d6616f10996 /src/lib/ffmpeg_decoder.h
parentfcb32ed8013ed35f179f2dc213df72bc84150d30 (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;