Skip to content

Commit

Permalink
Fixed LinearBlock thumbnail crash issue
Browse files Browse the repository at this point in the history
issue tracker id b/222071096
not to send csd with size 0

Test:
Thumbnail preview OK
MMP playback OK

Bug: 222071096
Change-Id: I09e84a4b4d6b37948268225fc7d1fdced75e05f8
  • Loading branch information
mtk17381 authored and fazilsheik96 committed Mar 1, 2025
1 parent d24c4c0 commit 5971fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media/libstagefright/MediaCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5981,9 +5981,9 @@ void MediaCodec::extractCSD(const sp<AMessage> &format) {
}
if (csd->size() == 0) {
ALOGW("csd-%zu size is 0", i);
} else {
mCSD.push_back(csd);
}

mCSD.push_back(csd);
++i;
}

Expand Down

0 comments on commit 5971fc0

Please sign in to comment.