[rtmpdump] r153 - trunk/rtmpdump.c
hyc
subversion at mplayerhq.hu
Thu Dec 31 04:05:41 CET 2009
Author: hyc
Date: Thu Dec 31 04:05:40 2009
New Revision: 153
Log:
Silence warning
Modified:
trunk/rtmpdump.c
Modified: trunk/rtmpdump.c
==============================================================================
--- trunk/rtmpdump.c Thu Dec 31 04:03:16 2009 (r152)
+++ trunk/rtmpdump.c Thu Dec 31 04:05:40 2009 (r153)
@@ -696,7 +696,9 @@ GetLastKeyframe(FILE * file, // output f
size = ftello(file);
fseek(file, 4, SEEK_SET);
- fread(&dataType, sizeof(uint8_t), 1, file);
+ if (fread(&dataType, sizeof(uint8_t), 1, file) != 1)
+ return RD_FAILED;
+
bAudioOnly = (dataType & 0x4) && !(dataType & 0x1);
Log(LOGDEBUG, "bAudioOnly: %d, size: %llu", bAudioOnly,
More information about the rtmpdump
mailing list