Skip to content
Snippets Groups Projects
Commit c03254ae authored by Leo Ma's avatar Leo Ma
Browse files

Fix bug


Signed-off-by: default avatarLeo Ma <begeekmyfriend@gmail.com>
parent 6e3ba0dd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -97,7 +97,7 @@ public class SrsEncoder {
// Note: the stride of resolution must be set as 16x for hard encoding with some chip like MTK
// Since Y component is quadruple size as U and V component, the stride must be set as 32x
if (!useSoftEncoder && vOutWidth % 32 != 0 || vOutHeight % 32 != 0) {
if (!useSoftEncoder && (vOutWidth % 32 != 0 || vOutHeight % 32 != 0)) {
if (vmci.getName().contains("MTK")) {
//throw new AssertionError("MTK encoding revolution stride must be 32x");
}
Loading
Loading
@@ -284,7 +284,7 @@ public class SrsEncoder {
// Note: the stride of resolution must be set as 16x for hard encoding with some chip like MTK
// Since Y component is quadruple size as U and V component, the stride must be set as 32x
if (!useSoftEncoder && vOutWidth % 32 != 0 || vOutHeight % 32 != 0) {
if (!useSoftEncoder && (vOutWidth % 32 != 0 || vOutHeight % 32 != 0)) {
if (vmci.getName().contains("MTK")) {
//throw new AssertionError("MTK encoding revolution stride must be 32x");
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment