From 2ddc6b439226a7dffb740d6e50bdd835a27d10ea Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Mon, 19 Mar 2018 16:29:45 -0700 Subject: avcodec/mediacodecdec: propagate SAR to h/w frames Allows consumers who are converting hardware buffers to OpenGL textures to render the frames at the intended display resolution. Signed-off-by: Aman Gupta Signed-off-by: Derek Buitenhuis --- libavcodec/mediacodecdec_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/mediacodecdec_common.h') diff --git a/libavcodec/mediacodecdec_common.h b/libavcodec/mediacodecdec_common.h index 4f3b4f9fa5..023d4c5fa7 100644 --- a/libavcodec/mediacodecdec_common.h +++ b/libavcodec/mediacodecdec_common.h @@ -61,6 +61,8 @@ typedef struct MediaCodecDecContext { int crop_bottom; int crop_left; int crop_right; + int display_width; + int display_height; uint64_t output_buffer_count; -- cgit v1.2.3