Commit e8ca0528 authored by Dirk Van Haerenborgh's avatar Dirk Van Haerenborgh Committed by Sebastian Dröge

riff: never create caps with negative height
parent c62df3ad
......@@ -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,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment