libstagefright: mark the dummy frame as keyframe.

This makes sure decoder->read() returns if it is the first frame fed.
This commit is contained in:
Mohamed Naufal 2011-10-07 18:05:34 +05:30
parent 295f13953d
commit fedbf9177c
1 changed files with 1 additions and 0 deletions

View File

@ -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);