Fix errors when seeking FFmpeg for some formats.
authorCarl Hetherington <cth@carlh.net>
Thu, 3 Jun 2021 20:55:44 +0000 (22:55 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 4 Jun 2021 20:31:07 +0000 (22:31 +0200)
commit9f4cb3b340376d93be39dc97c2e0c631e9cf73c4
tree9fae847281fbe1a0c674723f6eb36f19ebcd03d3
parenta498b8819ab431ecc2aac058b1aadb9e15d396ac
Fix errors when seeking FFmpeg for some formats.

The comments discuss this in a bit more depth, but basically we see
errors from avcodec_send_packet after seek.  ffplay etc. seem basically
to ignore all errors from avcodec_send_packet, and I can't find a
"proper" fix, so here's a half-way house hack: ignore some errors
after seek.  Nasty.
src/lib/ffmpeg_decoder.cc
src/lib/ffmpeg_decoder.h
test/ffmpeg_decoder_seek_test.cc