diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2015-03-30 12:58:26 -0700 |
---|---|---|
committer | Vignesh Venkatasubramanian <vigneshv@google.com> | 2015-03-30 12:58:26 -0700 |
commit | 1f05b19e69a97e451380be011923cf7ed7eab4d5 (patch) | |
tree | c516f007e92ac7bbc3d98288ebb5de4cfcf79d40 /webmdec.h | |
parent | bf7def9a436e7ea78a600ac2e4405aa84733907d (diff) | |
download | libvpx-1f05b19e69a97e451380be011923cf7ed7eab4d5.tar libvpx-1f05b19e69a97e451380be011923cf7ed7eab4d5.tar.gz libvpx-1f05b19e69a97e451380be011923cf7ed7eab4d5.tar.bz2 libvpx-1f05b19e69a97e451380be011923cf7ed7eab4d5.zip |
webmdec: Fix read_frame return value for calls after EOS
webm_read_frame assumes that it won't be called once end of file
is reached. But for frame parallel mode that turns out to be not
true. this patch fixes that behavior by checking for EOS and
returning the appropriate value for subsequent calls.
Change-Id: Ie2fddbe00493a0f96c4172c67be1eb719f0fe8ed
Diffstat (limited to 'webmdec.h')
-rw-r--r-- | webmdec.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -29,6 +29,7 @@ struct WebmInputContext { int video_track_index; uint64_t timestamp_ns; int is_key_frame; + int reached_eos; }; // Checks if the input is a WebM file. If so, initializes WebMInputContext so |