[FFmpeg-cvslog] avcodec/libstagefright: fix Stagefright_decode_frame() failing to exit when the source is done

zylthinking git at videolan.org
Wed Sep 23 13:05:34 CEST 2015


ffmpeg | branch: master | zylthinking <zylthinking at gmail.com> | Wed Sep 23 13:01:44 2015 +0800| [d1bbefeaa76c8b726ce0887e1bb653f05d6e7208] | committer: Michael Niedermayer

avcodec/libstagefright: fix Stagefright_decode_frame() failing to exit when the source is done

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d1bbefeaa76c8b726ce0887e1bb653f05d6e7208
---

 libavcodec/libstagefright.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libstagefright.cpp b/libavcodec/libstagefright.cpp
index f4b38e6..07cac33 100644
--- a/libavcodec/libstagefright.cpp
+++ b/libavcodec/libstagefright.cpp
@@ -433,7 +433,7 @@ static int Stagefright_decode_frame(AVCodecContext *avctx, void *data,
         pthread_mutex_lock(&s->out_mutex);
         if (!s->out_queue->empty()) break;
         pthread_mutex_unlock(&s->out_mutex);
-        if (s->source_done) {
+        if (!s->source_done) {
             usleep(10000);
             continue;
         } else {



More information about the ffmpeg-cvslog mailing list