Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-good
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
6cc2ad47
Commit
6cc2ad47
authored
Jul 24, 2012
by
Mark Nauwelaerts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avidemux: rearrange some checks to avoid NULL use
parent
6cb106d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gst/avi/gstavidemux.c
gst/avi/gstavidemux.c
+5
-5
No files found.
gst/avi/gstavidemux.c
View file @
6cc2ad47
...
...
@@ -4468,6 +4468,11 @@ gst_avi_demux_invert (GstAviStream * stream, GstBuffer * buf)
if
(
stream
->
strh
->
type
!=
GST_RIFF_FCC_vids
)
return
buf
;
if
(
stream
->
strf
.
vids
==
NULL
)
{
GST_WARNING
(
"Failed to retrieve vids for stream"
);
return
buf
;
}
fourcc
=
(
stream
->
strf
.
vids
->
compression
)
?
stream
->
strf
.
vids
->
compression
:
stream
->
strh
->
fcc_handler
;
if
(
!
gst_avi_demux_is_uncompressed
(
fourcc
))
{
...
...
@@ -4483,11 +4488,6 @@ gst_avi_demux_invert (GstAviStream * stream, GstBuffer * buf)
return
buf
;
}
if
(
stream
->
strf
.
vids
==
NULL
)
{
GST_WARNING
(
"Failed to retrieve vids for stream"
);
return
buf
;
}
h
=
stream
->
strf
.
vids
->
height
;
w
=
stream
->
strf
.
vids
->
width
;
stride
=
GST_ROUND_UP_4
(
w
*
(
bpp
/
8
));
...
...
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