mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/sapdec: Check ffurl_get_file_handle() for error
Fixes: CID1604506 Overflowed constant
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3e305a0e70
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
bc559f233c
commit
cde55124df
|
@ -195,6 +195,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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue