Commit fedbf917 authored by Mohamed Naufal's avatar Mohamed Naufal

libstagefright: mark the dummy frame as keyframe.

This makes sure decoder->read() returns if it is the first frame fed.
parent 295f1395
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment