Hey Paulo

This works for me

char * url = "udp://:1500";
char * format = "mpegts";

AVInputFormat *fmt = NULL;
AVFormatContext *oc = NULL;

int res;

if (format != NULL){
fmt = av_find_input_format(format);
res = avformat_open_input(&oc, url, fmt , NULL);
} else {
res = avformat_open_input(&oc, url, NULL , NULL);
}

So it may be just a matter of supplying the format (its normally mpegts for
udp streams).

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

Reply via email to