libspark/video.cpp: I tend to believe that comparing signed and unsigned would break for st.st_size < 4

Origin commit data
------------------
Branch: master
Commit: c2a9c1a6df
Author: martii <you@example.com>
Date: 2012-08-12 (Sun, 12 Aug 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2012-08-12 10:04:35 +02:00
parent 826a826f82
commit 3f3b02b9cd

View File

@@ -439,7 +439,11 @@ void cVideo::ShowPicture(const char * fname)
ioctl(fd, VIDEO_PLAY);
ioctl(fd, VIDEO_CONTINUE);
ioctl(fd, VIDEO_CLEAR_BUFFER);
#ifdef MARTII
while ((pos + 4) <= st.st_size && !(seq_end_avail = (!iframe[pos] && !iframe[pos+1] && iframe[pos+2] == 1 && iframe[pos+3] == 0xB7)))
#else
while (pos <= (st.st_size-4) && !(seq_end_avail = (!iframe[pos] && !iframe[pos+1] && iframe[pos+2] == 1 && iframe[pos+3] == 0xB7)))
#endif
++pos;
if ((iframe[3] >> 4) != 0xE) // no pes header