Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Grunau <janne-vlc@jannau.net>2018-11-15 22:35:27 +0300
committerJanne Grunau <janne-vlc@jannau.net>2018-11-16 00:29:05 +0300
commit14388c3c6b53a5c2fea329e36693fd092042d392 (patch)
tree024dfb336f7c2176c5d983827d64768b91247b2b /tools/dav1d.c
parente890a66f773d12d0680a6fe50807800921dac504 (diff)
call dav1d_get_picture() until it returns -EAGAIN for draining
With the decoupled decoding data there might be remaining input data during draining which can cause bitstream parsing errors.
Diffstat (limited to 'tools/dav1d.c')
-rw-r--r--tools/dav1d.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/dav1d.c b/tools/dav1d.c
index 3d01279..f7dfd05 100644
--- a/tools/dav1d.c
+++ b/tools/dav1d.c
@@ -151,9 +151,10 @@ int main(const int argc, char *const *const argv) {
if (res != -EAGAIN) {
fprintf(stderr, "Error decoding frame: %s\n",
strerror(-res));
- } else
+ } else {
res = 0;
- break;
+ break;
+ }
} else {
if (!n_out) {
if ((res = output_open(&out, cli_settings.muxer,