summaryrefslogtreecommitdiff
path: root/webmdec.cc
diff options
context:
space:
mode:
authorVignesh Venkatasubramanian <vigneshv@google.com>2015-04-03 15:45:14 -0700
committerVignesh Venkatasubramanian <vigneshv@google.com>2015-04-07 11:04:51 -0700
commit866447a008e9dc6aa0b9ca98cdf6ea05e599e0f5 (patch)
tree4b1590cdd74e561b8d469ee29391665f4c1e4262 /webmdec.cc
parent30e9c091c08e570b484fb0bc4c443ddd17fd7443 (diff)
downloadlibvpx-866447a008e9dc6aa0b9ca98cdf6ea05e599e0f5.tar
libvpx-866447a008e9dc6aa0b9ca98cdf6ea05e599e0f5.tar.gz
libvpx-866447a008e9dc6aa0b9ca98cdf6ea05e599e0f5.tar.bz2
libvpx-866447a008e9dc6aa0b9ca98cdf6ea05e599e0f5.zip
webmdec: Fix for reaching eof in webm_guess_framerate
Reset the reached_eos flag in webm_guess_framerate in case it ends up consuming the entire file. Also adding a vpxdec shell test to verify this behavior. Change-Id: I371eebd2105231dc0f60e65da1f71b233ad14be5
Diffstat (limited to 'webmdec.cc')
-rw-r--r--webmdec.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/webmdec.cc b/webmdec.cc
index 60b01ad4b..e152f5ee0 100644
--- a/webmdec.cc
+++ b/webmdec.cc
@@ -219,6 +219,7 @@ int webm_guess_framerate(struct WebmInputContext *webm_ctx,
webm_ctx->block_entry = NULL;
webm_ctx->block_frame_index = 0;
webm_ctx->timestamp_ns = 0;
+ webm_ctx->reached_eos = 0;
return 0;
}