diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-07-05 13:52:25 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-07-05 13:54:23 +0300 |
commit | 064fe8459367b244d9eb84d5a7d35a16467ae994 (patch) | |
tree | 58c5e05009a81cb88fdfe66f9bb176c56c85990a /gst | |
parent | 6a1b95bfb5d89d1383aee91d375bdee34430cc1d (diff) | |
download | gstreamer-plugins-bad-064fe8459367b244d9eb84d5a7d35a16467ae994.tar.gz |
mxfmetadata: Use display width/height instead of stored width/height
Stored values contain padding and alignment, and should only be used as
fallback if neither display values nor sampled values exist.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mxf/mxfmetadata.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/mxf/mxfmetadata.c b/gst/mxf/mxfmetadata.c index 0fbc11e1d..8f095926b 100644 --- a/gst/mxf/mxfmetadata.c +++ b/gst/mxf/mxfmetadata.c @@ -4949,6 +4949,14 @@ void mxf_metadata_generic_picture_essence_descriptor_set_caps width = self->stored_width; height = self->stored_height; + if (self->sampled_width && self->sampled_height) { + width = self->sampled_width; + height = self->sampled_height; + } + if (self->display_width && self->display_height) { + width = self->display_width; + height = self->display_height; + } /* If the video is stored as separate fields the * height is only the height of one field, i.e. |