Browse Source

libstagefright: mark the dummy frame as keyframe.

This makes sure decoder->read() returns if it is the first frame fed.
tags/n0.9
Mohamed Naufal 14 years ago
parent
commit
fedbf9177c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/libstagefright.cpp

+ 1
- 0
libavcodec/libstagefright.cpp View File

@@ -460,6 +460,7 @@ static av_cold int Stagefright_close(AVCodecContext *avctx)
if (s->dummy_buf && (frame = (Frame*)av_mallocz(sizeof(Frame)))) { if (s->dummy_buf && (frame = (Frame*)av_mallocz(sizeof(Frame)))) {
frame->status = OK; frame->status = OK;
frame->size = s->dummy_bufsize; frame->size = s->dummy_bufsize;
frame->key = 1;
frame->buffer = s->dummy_buf; frame->buffer = s->dummy_buf;
pthread_mutex_lock(&s->in_mutex); pthread_mutex_lock(&s->in_mutex);
s->in_queue->push_back(frame); s->in_queue->push_back(frame);


Loading…
Cancel
Save