<div dir="ltr">Hello.<br clear="all"><div><br></div><div>Here my code:<br><br>void RtpStream::run()<br>{<br> QMutexLocker guard(&mutex_);<br><br> if (!ip_.isEmpty()) {<br> AVInputFormat* fmt = av_find_input_format(ip_.scheme().toLatin1());<br>
<br> if (!fmt) {<br> qDebug() << "RtpStream: can't finfd format";<br> return;<br> }<br><br> AVFormatContext *ctx = avformat_alloc_context();<br><br> if (!ctx)<br>
qDebug() << "RtpStream: can't alloc context";<br><br> int ret = avformat_open_input(&ctx, ip_.toString().toLatin1().constData(), fmt, NULL);<br> qDebug() << "RtpStream: ret " << ret;<br>
<br><br> av_free(fmt);<br> avformat_free_context(ctx);<br> }<br><br> else<br> qDebug() << "RtpStream: ip number is empty!";<br>}<br><br>avformat_open_input hangs.<br></div><div>What I do wrong?<br>
</div><div><br>-- <br>Regards,<br>Dmitry
</div></div>