Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-base
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
e8ca0528
Commit
e8ca0528
authored
Mar 10, 2013
by
Dirk Van Haerenborgh
Committed by
Sebastian Dröge
Mar 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riff: never create caps with negative height
https://bugzilla.gnome.org/show_bug.cgi?id=695540
parent
c62df3ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
gst-libs/gst/riff/riff-media.c
gst-libs/gst/riff/riff-media.c
+3
-1
No files found.
gst-libs/gst/riff/riff-media.c
View file @
e8ca0528
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment