mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libspark/video.cpp: I tend to believe that comparing signed and unsigned would break for st.st_size < 4
This commit is contained in:
@@ -439,7 +439,11 @@ void cVideo::ShowPicture(const char * fname)
|
|||||||
ioctl(fd, VIDEO_PLAY);
|
ioctl(fd, VIDEO_PLAY);
|
||||||
ioctl(fd, VIDEO_CONTINUE);
|
ioctl(fd, VIDEO_CONTINUE);
|
||||||
ioctl(fd, VIDEO_CLEAR_BUFFER);
|
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)))
|
while (pos <= (st.st_size-4) && !(seq_end_avail = (!iframe[pos] && !iframe[pos+1] && iframe[pos+2] == 1 && iframe[pos+3] == 0xB7)))
|
||||||
|
#endif
|
||||||
++pos;
|
++pos;
|
||||||
|
|
||||||
if ((iframe[3] >> 4) != 0xE) // no pes header
|
if ((iframe[3] >> 4) != 0xE) // no pes header
|
||||||
|
Reference in New Issue
Block a user