Fix thumbnail extraction for extractors that don't have a preference.
Change-Id: Id305a44416b08a667aae86c2109aa4dff9f17342
This commit is contained in:
@@ -144,7 +144,10 @@ static VideoFrame *extractVideoFrameWithCodecFlags(
|
||||
static_cast<MediaSource::ReadOptions::SeekMode>(seekMode);
|
||||
|
||||
int64_t thumbNailTime;
|
||||
if (frameTimeUs < 0 && trackMeta->findInt64(kKeyThumbnailTime, &thumbNailTime)) {
|
||||
if (frameTimeUs < 0) {
|
||||
if (!trackMeta->findInt64(kKeyThumbnailTime, &thumbNailTime)) {
|
||||
thumbNailTime = 0;
|
||||
}
|
||||
options.setSeekTo(thumbNailTime, mode);
|
||||
} else {
|
||||
thumbNailTime = -1;
|
||||
|
||||
Reference in New Issue
Block a user