You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
avcodec/libstagefright: fix Stagefright_decode_frame() failing to exit when the source is done
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
69e6ed2174
commit
d1bbefeaa7
@ -433,7 +433,7 @@ static int Stagefright_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
pthread_mutex_lock(&s->out_mutex);
|
pthread_mutex_lock(&s->out_mutex);
|
||||||
if (!s->out_queue->empty()) break;
|
if (!s->out_queue->empty()) break;
|
||||||
pthread_mutex_unlock(&s->out_mutex);
|
pthread_mutex_unlock(&s->out_mutex);
|
||||||
if (s->source_done) {
|
if (!s->source_done) {
|
||||||
usleep(10000);
|
usleep(10000);
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user