frontends/omx: preserve omx to keep current mode for avc decoding

Preparing to disable h264 extension flag in vaapi path, and this change
will not affect omx.

Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14484>
This commit is contained in:
Ruijing Dong 2022-01-10 11:29:52 -05:00 committed by Marge Bot
parent 2af033fd54
commit fb1d1d3b1f

View file

@ -46,7 +46,7 @@ static void vid_dec_h264_BeginFrame(vid_dec_PrivateType *priv)
templat.entrypoint = PIPE_VIDEO_ENTRYPOINT_BITSTREAM;
templat.chroma_format = PIPE_VIDEO_CHROMA_FORMAT_420;
templat.max_references = priv->picture.h264.num_ref_frames;
templat.expect_chunked_decode = true;
templat.expect_chunked_decode = false;
#if ENABLE_ST_OMX_BELLAGIO
omx_base_video_PortType *port;
port = (omx_base_video_PortType *)priv->ports[OMX_BASE_FILTER_INPUTPORT_INDEX];