Skip to content

Commit c8a3361

Browse files
Googlercopybara-github
Googler
authored andcommitted
internal change
PiperOrigin-RevId: 745226864
1 parent 9182b41 commit c8a3361

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/decoder/src/main/java/androidx/media3/decoder/VideoDecoderOutputBuffer.java

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public class VideoDecoderOutputBuffer extends DecoderOutputBuffer {
5656

5757
@Nullable public int[] yuvStrides;
5858
public int colorspace;
59+
public int yStride;
60+
public int uvStride;
5961

6062
/**
6163
* Supplemental data related to the output frame, if {@link #hasSupplementalData()} returns true.
@@ -117,6 +119,8 @@ public boolean initForYuvFrame(int width, int height, int yStride, int uvStride,
117119
this.width = width;
118120
this.height = height;
119121
this.colorspace = colorspace;
122+
this.yStride = yStride;
123+
this.uvStride = uvStride;
120124
int uvHeight = (int) (((long) height + 1) / 2);
121125
if (!isSafeToMultiply(yStride, height) || !isSafeToMultiply(uvStride, uvHeight)) {
122126
return false;

0 commit comments

Comments
 (0)