[FFmpeg-cvslog] libstagefright: mark the dummy frame as keyframe.
Mohamed Naufal
git at videolan.org
Fri Oct 7 15:38:33 CEST 2011
ffmpeg | branch: master | Mohamed Naufal <naufal22 at gmail.com> | Fri Oct 7 18:23:34 2011 +0530| [fedbf9177c6e22ca109f37ff55ac3097eb152edd] | committer: Mohamed Naufal
libstagefright: mark the dummy frame as keyframe.
This makes sure decoder->read() returns if it is the first frame fed.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fedbf9177c6e22ca109f37ff55ac3097eb152edd
---
libavcodec/libstagefright.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/libstagefright.cpp b/libavcodec/libstagefright.cpp
index 1f8bdc4..f6dad67 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);
More information about the ffmpeg-cvslog
mailing list