diff options
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 32903a20e..b7b70e061 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -116,7 +116,7 @@ FFmpegDecoder::flush () } } -void +bool FFmpegDecoder::pass () { int r = av_read_frame (_format_context, &_packet); @@ -134,7 +134,7 @@ FFmpegDecoder::pass () } flush (); - return; + return true; } int const si = _packet.stream_index; @@ -149,6 +149,7 @@ FFmpegDecoder::pass () } av_packet_unref (&_packet); + return false; } /** @param data pointer to array of pointers to buffers. |
