这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@davidliu
Copy link
Contributor

No description provided.

@davidliu davidliu requested a review from hiroshihorie March 23, 2022 16:35
}

override fun getEncoderInfo(): VideoEncoder.EncoderInfo {
val future = executor.submit(Callable { return@Callable encoder.encoderInfo })
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main thing that was breaking the hardware encoder from working (and preventing H264 from working). EncoderInfo holds onto information needed for resolution alignment, which is used to adjust the resolution (only works on 16x16 aligned frames).

Copy link
Member

@hiroshihorie hiroshihorie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix ! No issues with H264 encoding now ?

@davidzhao
Copy link
Member

would flutter have the same issue then?

@davidliu
Copy link
Contributor Author

davidliu commented Mar 23, 2022

Yeah, H264 works properly now.

Flutter uses the same code IIRC, I'll put in a PR for Flutter tomorrow.

It looks like this behavior got broken in the M97 upgrade, so the device farm testing will hopefully help catch these breakages down the road.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants