<div dir="ltr">Hello,<div><br></div><div>I am trying to open an SDP file to receive an RTP stream and I get this message:<div><br></div><div><div><font color="#303336">[rtp @ 03928900] Protocol not on whitelist 'file'!</font></div><div><font color="#303336">Failed: cannot open input.</font></div><div><font color="#303336">avformat_open_input() fail: Invalid data found when processing input</font></div><div><font color="#303336"><br></font></div><div><font color="#303336">Normally if I were using ffplay on the console, I would add the option -protocol_whitelist file,udp,rtp and it would work fine.</font></div><div><font color="#303336"><br></font></div><div><font color="#303336">So I tried this:</font></div><div><font color="#303336"><br></font></div><div><font color="#303336">AVDictionary *d = NULL;           </font></div><div><font color="#303336">av_dict_set(&d, "protocol_whitelist", "file, udp, rtp", 0); </font></div><div><font color="#303336">ret = avformat_open_input(&inFormatCtx, filename, NULL, &d);</font></div><div><font color="#303336"><br></font></div><div><font color="#303336">But the same message still pops up. </font></div><div><font color="#303336">Any ideas?</font></div></div></div></div>