diff options
author | James Zern <jzern@google.com> | 2018-06-23 12:29:31 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2018-07-09 22:32:19 -0700 |
commit | d95d82b15b84e676bf2451049227a473263e3623 (patch) | |
tree | a164695613031856188be664a80a6cc62ec87e5a /vpxdec.c | |
parent | 4a5f0c08991c5e25d74e53b53af60399bd3133a0 (diff) | |
download | libvpx-d95d82b15b84e676bf2451049227a473263e3623.tar libvpx-d95d82b15b84e676bf2451049227a473263e3623.tar.gz libvpx-d95d82b15b84e676bf2451049227a473263e3623.tar.bz2 libvpx-d95d82b15b84e676bf2451049227a473263e3623.zip |
vpxdec,raw_read_frame: fix eof return
fixes an endless loop caused by successful read return on eof.
since:
00a35aab7 vpx[dec|enc]: Extract IVF support from the apps.
BUG=webm:1539
Change-Id: I64dbb94189ea6a745d53a4bacc033f5f58eafb37
Diffstat (limited to 'vpxdec.c')
-rw-r--r-- | vpxdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -238,9 +238,10 @@ static int raw_read_frame(FILE *infile, uint8_t **buffer, size_t *bytes_read, return 1; } *bytes_read = frame_size; + return 0; } - return 0; + return 1; } static int read_frame(struct VpxDecInputContext *input, uint8_t **buf, |