h265parse: Fix uninitialized width and height when update src caps.
authorHe Junyan <junyan.he@intel.com>
Sat, 18 Jun 2022 02:36:53 +0000 (10:36 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 21 Jun 2022 15:47:45 +0000 (15:47 +0000)
commitf0d4135b3a7ac6dd0b7a9b78787592aa5eb63b20
tree00806df4e3c5568c546bd7c95a61e3f37b07d72c
parent1dc24d23d21b1ef39bf0a0a7399ad7dae94ff37f
h265parse: Fix uninitialized width and height when update src caps.

The commit b90d0274 introduces uninitialized width and height when we
consider to change the "pixel-aspect-ratio" for some interlaced stream.
We need to check the resolution in the src caps, and if no resolution
info found, there is no need to consider the aspect ratio.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2630>
subprojects/gst-plugins-bad/gst/videoparsers/gsth265parse.c