diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-02-13 23:13:54 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-13 23:13:54 +0100 |
| commit | de5ad19f419a4443789236cc085a9a6b7df3ed1b (patch) | |
| tree | ac66bae40b70b2797f39aa423a33c1af04728372 /src/lib/ffmpeg_decoder.cc | |
| parent | a488be44fa7559553036d4b081ad8e115311500b (diff) | |
Cleanup: use a class for the Decoder::pass() return value.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 85f79b513..79ac29c47 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -208,7 +208,7 @@ FFmpegDecoder::flush_fill() } -bool +Decoder::PassResult FFmpegDecoder::pass () { auto packet = av_packet_alloc(); @@ -230,7 +230,7 @@ FFmpegDecoder::pass () } av_packet_free (&packet); - return flush() == FlushResult::DONE; + return flush() == FlushResult::DONE ? PassResult::finished() : PassResult::ok(); } int const si = packet->stream_index; @@ -245,7 +245,7 @@ FFmpegDecoder::pass () } av_packet_free (&packet); - return false; + return PassResult::ok(); } |
