Hello.

Here my code:

void RtpStream::run()
{
    QMutexLocker guard(&mutex_);

    if (!ip_.isEmpty()) {
        AVInputFormat* fmt = av_find_input_format(ip_.scheme().toLatin1());

        if (!fmt) {
            qDebug() << "RtpStream: can't finfd format";
            return;
        }

        AVFormatContext *ctx = avformat_alloc_context();

        if (!ctx)
            qDebug() << "RtpStream: can't alloc context";

        int ret = avformat_open_input(&ctx,
ip_.toString().toLatin1().constData(), fmt, NULL);
        qDebug() << "RtpStream: ret " << ret;


        av_free(fmt);
        avformat_free_context(ctx);
    }

    else
        qDebug() << "RtpStream: ip number is empty!";
}

avformat_open_input hangs.
What I do wrong?

-- 
Regards,
Dmitry
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to