diff options
author | zylthinking <zylthinking@gmail.com> | 2015-09-23 13:01:44 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-23 12:35:59 +0200 |
commit | d1bbefeaa76c8b726ce0887e1bb653f05d6e7208 (patch) | |
tree | a75ad60baeaa489c1e259f05287cab918216f995 | |
parent | 69e6ed2174bb66e0d8e6a5de438d0e8d0750051a (diff) | |
download | ffmpeg-d1bbefeaa76c8b726ce0887e1bb653f05d6e7208.tar.gz |
avcodec/libstagefright: fix Stagefright_decode_frame() failing to exit when the source is done
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/libstagefright.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libstagefright.cpp b/libavcodec/libstagefright.cpp index f4b38e6070..07cac33bb7 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 { |