summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-11-29 11:48:26 +0000
committerEmil Velikov <[email protected]>2015-11-29 14:31:14 +0000
commit866a1f7fddcf38c0cd40fc7b9509e562353e1acc (patch)
treeabb1fb8f1081ffcf594767518cf4066d5fc852e9 /src/gallium/state_trackers/va
parent0396eaaf80c5d7955d7926c4e448f006c7682d2e (diff)
st/va: add missing break statement
Earlier commit factored out the mpeg4 IQ matrix handling into separate function, although it forgot to add a break in its case statement. Thus the data ended up partially overwritten as the mpeg4 and h265 structs are members of the desc union. Spotted by Coverity (CID 1341052) Fixes: 64761a841db "st/va: move MPEG4 functions into separate file" Cc: Julien Isorce <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va')
-rw-r--r--src/gallium/state_trackers/va/picture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/va/picture.c b/src/gallium/state_trackers/va/picture.c
index 5f703eb3eb6..34e7d553d1b 100644
--- a/src/gallium/state_trackers/va/picture.c
+++ b/src/gallium/state_trackers/va/picture.c
@@ -281,6 +281,7 @@ handleIQMatrixBuffer(vlVaContext *context, vlVaBuffer *buf)
case PIPE_VIDEO_FORMAT_MPEG4:
vlVaHandleIQMatrixBufferMPEG4(context, buf);
+ break;
case PIPE_VIDEO_FORMAT_HEVC:
assert(buf->size >= sizeof(VAIQMatrixBufferH264) && buf->num_elements == 1);