aboutsummaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMohamed Naufal2011-10-07 18:05:34 +0530
committerMohamed Naufal2011-10-07 18:32:40 +0530
commitfedbf9177c6e22ca109f37ff55ac3097eb152edd (patch)
tree183af836217c60c2ab2c189b61d269f778e7a696 /libavcodec
parent295f13953dc57be8c2ad7e41f6254d0a036582a8 (diff)
libstagefright: mark the dummy frame as keyframe.
This makes sure decoder->read() returns if it is the first frame fed.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libstagefright.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libstagefright.cpp b/libavcodec/libstagefright.cpp
index 1f8bdc4d59..f6dad67ddc 100644
--- a/libavcodec/libstagefright.cpp
+++ b/libavcodec/libstagefright.cpp
@@ -460,6 +460,7 @@ static av_cold int Stagefright_close(AVCodecContext *avctx)
if (s->dummy_buf && (frame = (Frame*)av_mallocz(sizeof(Frame)))) {
frame->status = OK;
frame->size = s->dummy_bufsize;
+ frame->key = 1;
frame->buffer = s->dummy_buf;
pthread_mutex_lock(&s->in_mutex);
s->in_queue->push_back(frame);