mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 18:11:11 +01:00
avformat/tcp: correct strdup check
Fixes CID 1524608.
This commit is contained in:
parent
c221036502
commit
dd7e30724b
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
|
|||
if (av_find_info_tag(buf, sizeof(buf), "local_port", p)) {
|
||||
av_freep(&s->local_port);
|
||||
s->local_port = av_strdup(buf);
|
||||
if (!s->local_addr)
|
||||
if (!s->local_port)
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
if (av_find_info_tag(buf, sizeof(buf), "local_addr", p)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue