summaryrefslogtreecommitdiff
authorNanxin Qin <nanxin.qin@amlogic.com>2020-03-16 06:45:02 (GMT)
committer Hui Zhang <hui.zhang@amlogic.com>2020-03-16 09:57:58 (GMT)
commit7a1edaf272020311b4afa10f218f81d26f4fed1b (patch)
tree19d1faa59cf4ad9633ea726ac652f0074c5d4b66
parent292204fff64d25b53bdbc07ef0a0dcb9b6e6f814 (diff)
downloadmedia_modules-7a1edaf272020311b4afa10f218f81d26f4fed1b.zip
media_modules-7a1edaf272020311b4afa10f218f81d26f4fed1b.tar.gz
media_modules-7a1edaf272020311b4afa10f218f81d26f4fed1b.tar.bz2
mpeg2: fixed the issue of picture type error. [1/1]
PD#SWPL-22217 Problem: the picture format type has not be set caused display abnormal. Solution: the picture format type be set to NV21 default. Verify: u212 Change-Id: I3da7bf50cca874f2304d1757606daa1c8af1c907 Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Diffstat
-rw-r--r--drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c b/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c
index 1a3ebf5..4195ad9 100644
--- a/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c
+++ b/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c
@@ -1503,6 +1503,9 @@ static int prepare_display_buf(struct vdec_mpeg12_hw_s *hw,
struct aml_vcodec_ctx * v4l2_ctx = hw->v4l2_ctx;
ulong nv_order = VIDTYPE_VIU_NV21;
+#ifdef NV21
+ type = nv_order;
+#endif
/* swap uv */
if (hw->is_used_v4l) {
if ((v4l2_ctx->cap_pix_fmt == V4L2_PIX_FMT_NV12) ||