diff options
author | Kim Zhang <xiazhang@codeaurora.org> | 2015-12-29 14:50:52 +0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-01-18 23:52:20 -0800 |
commit | 617daafc1cf7580b7d80ead8a7e21bb5cbf525cf (patch) | |
tree | 90f0b2b089546c3b1bc3be148fa175a195aa3cf7 /media/libstagefright/StagefrightMetadataRetriever.cpp | |
parent | f6e8c701024f6c5dac552e794dcc61016a7f1bf7 (diff) | |
download | frameworks_av-617daafc1cf7580b7d80ead8a7e21bb5cbf525cf.zip frameworks_av-617daafc1cf7580b7d80ead8a7e21bb5cbf525cf.tar.gz frameworks_av-617daafc1cf7580b7d80ead8a7e21bb5cbf525cf.tar.bz2 |
StagefrightMetadataRetriever: correct the status flag
In case of EOS or ERROR from source, correct the status flag and
clear the input index to continue to wait for output buffer from decoder.
This is to fix thumbnail generation failure for some clips with one frame.
CRs-Fixed: 951250
Change-Id: If9889dbcc32bf49368add408a317da026879fec8
Diffstat (limited to 'media/libstagefright/StagefrightMetadataRetriever.cpp')
-rw-r--r-- | media/libstagefright/StagefrightMetadataRetriever.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/StagefrightMetadataRetriever.cpp b/media/libstagefright/StagefrightMetadataRetriever.cpp index 5b96040..d39f34b 100644 --- a/media/libstagefright/StagefrightMetadataRetriever.cpp +++ b/media/libstagefright/StagefrightMetadataRetriever.cpp @@ -273,6 +273,9 @@ static VideoFrame *extractVideoFrame( if (err != OK) { ALOGW("Input Error or EOS"); haveMoreInputs = false; + //correct the status to continue to get output from decoder + err = OK; + inputIndex = -1; break; } |