Hi,

On Fri, Jun 17, 2011 at 12:47 AM, Martin Storsjö <[email protected]> wrote:
> From: Can Wu <[email protected]>
>
> For a unicast udp stream to localhost:1234, currently
> ffplay udp://:1234?localport=1234
> works, but
> ffplay udp://:1234
> doesn't work.
> ---
>  libavformat/udp.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libavformat/udp.c b/libavformat/udp.c
> index d6522bf..724ff01 100644
> --- a/libavformat/udp.c
> +++ b/libavformat/udp.c
> @@ -365,7 +365,7 @@ static int udp_open(URLContext *h, const char *uri, int 
> flags)
>             goto fail;
>     }
>
> -    if (s->is_multicast && (h->flags & AVIO_FLAG_READ))
> +    if ((s->is_multicast || !s->local_port) && (h->flags & AVIO_FLAG_READ))

OK.

Ronald
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to