v4l2codecs: h264: Add missing break

There was a missing break for the 4:4:4 case which would break the sizeimage
calculation. We don't currently have hardware that supports 4:4:4, so this
code wasn't tested. This was detected by Coverity.

CID 1463592 1463591

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1283>
This commit is contained in:
Nicolas Dufresne 2020-05-20 07:35:28 -04:00 committed by GStreamer Merge Bot
parent 9bb508c742
commit d16367f046

View file

@ -211,6 +211,7 @@ get_pixel_bitdepth (GstV4l2CodecH264Dec * self)
case 3:
/* 4:4:4 */
depth = 3 * self->bitdepth;
break;
default:
GST_WARNING_OBJECT (self, "Unsupported chroma format %i",
self->chroma_format_idc);