Unverified Commit aa3cdc08 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/sapdec: Check ffurl_get_file_handle() for error


Fixes: CID1604506 Overflowed constant

Sponsored-by: Sovereign Tech Fund
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3e305a0e

)
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent a1524dbc
No related merge requests found
Showing with 3 additions and 0 deletions
+3 -0
......@@ -198,6 +198,9 @@ static int sap_fetch_packet(AVFormatContext *s, AVPacket *pkt)
struct pollfd p = {fd, POLLIN, 0};
uint8_t recvbuf[RTP_MAX_PACKET_LENGTH];
if (fd < 0)
return fd;
if (sap->eof)
return AVERROR_EOF;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment