]> git.sesse.net Git - x264/commit
Workaround for FFMS indexing bug
authorHenrik Gramner <henrik@gramner.com>
Tue, 27 Aug 2013 22:50:31 +0000 (00:50 +0200)
committerFiona Glaser <fiona@x264.com>
Tue, 27 Aug 2013 23:05:38 +0000 (16:05 -0700)
commit2fd292391a4d41b9fc65ee652b4663fdd9f8107e
tree4e38c65125d07e68b4dda672b1f7a9f39b203051
parent5bcff2a62c050376ca54c5e5040d0529c89eb9f2
Workaround for FFMS indexing bug

If FFMS_ReadIndex is used with an empty index file it gets stuck in an infinite loop instead of returning NULL
like it's supposed to do on failure. Explicitly check if the file is empty before calling it as a workaround.
input/ffms.c