Module: Mesa
Branch: master
Commit: 9a4daac0bbf8233f7f1fe5a65aef882f13dccd2e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9a4daac0bbf8233f7f1fe5a65aef882f13dccd2e

Author: Thong Thai <[email protected]>
Date:   Tue Jun  2 09:27:07 2020 -0400

frontends/va: Enabled packed headers for H.264 encoder

Signed-off-by: Thong Thai <[email protected]>
Reviewed-by: Leo Liu <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4184>

---

 src/gallium/frontends/va/config.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/frontends/va/config.c 
b/src/gallium/frontends/va/config.c
index f9f5519bc89..fe96be0b38a 100644
--- a/src/gallium/frontends/va/config.c
+++ b/src/gallium/frontends/va/config.c
@@ -158,7 +158,8 @@ vlVaGetConfigAttributes(VADriverContextP ctx, VAProfile 
profile, VAEntrypoint en
             break;
          case VAConfigAttribEncPackedHeaders:
             value = VA_ENC_PACKED_HEADER_NONE;
-            if (u_reduce_video_profile(ProfileToPipe(profile)) == 
PIPE_VIDEO_FORMAT_HEVC)
+            if (u_reduce_video_profile(ProfileToPipe(profile)) == 
PIPE_VIDEO_FORMAT_MPEG4_AVC ||
+                u_reduce_video_profile(ProfileToPipe(profile)) == 
PIPE_VIDEO_FORMAT_HEVC)
                value |= VA_ENC_PACKED_HEADER_SEQUENCE;
             break;
          case VAConfigAttribEncMaxRefFrames:

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to