mpeg2enc: fix interlace-mode detection
authorMathieu Duponchelle <mathieu@centricular.com>
Thu, 5 Aug 2021 21:11:26 +0000 (23:11 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Thu, 5 Aug 2021 21:12:32 +0000 (23:12 +0200)
commitc5d725652d7ac514505a3e653e0e41cbca202230
treec3c854a4958bea960963edfcdf07e533cac9a720
parenta561b1bd8601ed8ae8769339cc8d93c2c23e2d84
mpeg2enc: fix interlace-mode detection

Previously, the code was always assuming progressive input,
fix this by looking at the caps.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2455>
ext/mpeg2enc/gstmpeg2encpicturereader.cc