mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
riff: never create caps with negative height
https://bugzilla.gnome.org/show_bug.cgi?id=695540
This commit is contained in:
parent
c62df3adaa
commit
e8ca0528a9
1 changed files with 3 additions and 1 deletions
|
@ -892,9 +892,11 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
|||
}
|
||||
|
||||
if (strf != NULL) {
|
||||
/* raw rgb data is stored topdown, but instead of inverting the buffer, */
|
||||
/* some tools just negate the height field in the header (e.g. ffmpeg) */
|
||||
gst_caps_set_simple (caps,
|
||||
"width", G_TYPE_INT, strf->width,
|
||||
"height", G_TYPE_INT, strf->height, NULL);
|
||||
"height", G_TYPE_INT, ABS ((gint) strf->height), NULL);
|
||||
} else {
|
||||
gst_caps_set_simple (caps,
|
||||
"width", GST_TYPE_INT_RANGE, 1, G_MAXINT,
|
||||
|
|
Loading…
Reference in a new issue