Hello everyone,

I'm pretty new to Ffmpeg and I got started to learn the APIs just days ago.
I ported the Ffmpeg Tutorial 02(playing a video file as quickly as it can,
http://dranger.com/ffmpeg/tutorial02.html) to Android, but the playing
thread blocks at av_find_stream_info() function call indefinitely. By
tracing into the function body I found that it entered a dead for(;;) loop
then never break. The code snippet around the loop is as following:

    count = 0;
    read_size = 0;
    for(;;) {
        if(url_interrupt_cb()){
            ret= AVERROR(EINTR);
            av_log(ic, AV_LOG_DEBUG, "interrupted\n");
            break;
        }
        ...

I'm using Ffmpeg version 0.6.1 compiled with NDK r5 for Android 1.5(API 3).
The video file encoding info is:

    Video: MPEG4 Video 320x240 14.99fps [Video]
    Audio: AAC 48000Hz stereo 1536Kbps [Audio]

Could someone help on this? Orz...

-
 Roxit

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to