Files
MINGW-packages/mingw-w64-rtmpdump-git/0008-unused-variable-warning-fix.all.patch
2014-03-12 15:35:07 +04:00

19 lines
606 B
Diff

--- rtmpdump/librtmp/rtmp.c.orig 2014-03-12 09:33:00.164715700 +0000
+++ rtmpdump/librtmp/rtmp.c 2014-03-12 09:35:01.513625100 +0000
@@ -3572,7 +3572,6 @@
uint8_t hbuf[RTMP_MAX_HEADER_SIZE] = { 0 };
char *header = (char *)hbuf;
int nSize, hSize, nToRead, nChunk;
- int didAlloc = FALSE;
int extendedTimestamp;
RTMP_Log(RTMP_LOGDEBUG2, "%s: fd=%d", __FUNCTION__, r->m_sb.sb_socket);
@@ -3700,7 +3699,6 @@
RTMP_Log(RTMP_LOGDEBUG, "%s, failed to allocate packet", __FUNCTION__);
return FALSE;
}
- didAlloc = TRUE;
packet->m_headerType = (hbuf[0] & 0xc0) >> 6;
}