diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2015-11-03 17:48:54 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-11-03 17:48:54 -0800 |
commit | fc4da68969ef979905ce29018a22460fe8c73dba (patch) | |
tree | 51d6ef569397a4cfffc66af28581ba7f41e44c33 /media/libstagefright/MediaCodec.cpp | |
parent | f140e521f51b2d48c1f983c2790f4ab55b6dfac9 (diff) | |
parent | a729f437f5f46efbd366721d7d4f398186ce77cd (diff) | |
download | frameworks_av-fc4da68969ef979905ce29018a22460fe8c73dba.zip frameworks_av-fc4da68969ef979905ce29018a22460fe8c73dba.tar.gz frameworks_av-fc4da68969ef979905ce29018a22460fe8c73dba.tar.bz2 |
Merge "nuplayer: Drop frames with DATACORRUPT flag"
Diffstat (limited to 'media/libstagefright/MediaCodec.cpp')
-rw-r--r-- | media/libstagefright/MediaCodec.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libstagefright/MediaCodec.cpp b/media/libstagefright/MediaCodec.cpp index c6ba76e..c77d366 100644 --- a/media/libstagefright/MediaCodec.cpp +++ b/media/libstagefright/MediaCodec.cpp @@ -989,6 +989,9 @@ bool MediaCodec::handleDequeueOutputBuffer(const sp<AReplyToken> &replyID, bool if (omxFlags & OMX_BUFFERFLAG_EXTRADATA) { flags |= BUFFER_FLAG_EXTRADATA; } + if (omxFlags & OMX_BUFFERFLAG_DATACORRUPT) { + flags |= BUFFER_FLAG_DATACORRUPT; + } response->setInt32("flags", flags); response->postReply(replyID); @@ -2633,6 +2636,9 @@ void MediaCodec::onOutputBufferAvailable() { if (omxFlags & OMX_BUFFERFLAG_EOS) { flags |= BUFFER_FLAG_EOS; } + if (omxFlags & OMX_BUFFERFLAG_DATACORRUPT) { + flags |= BUFFER_FLAG_DATACORRUPT; + } msg->setInt32("flags", flags); |