Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
e59d9328
Commit
e59d9328
authored
Nov 19, 2007
by
Michael Niedermayer
Browse files
cosmetic (x==NULL -> !x)
Originally committed as revision 11067 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
5b2052b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
libavcodec/dvbsubdec.c
libavcodec/dvbsubdec.c
+7
-7
No files found.
libavcodec/dvbsubdec.c
View file @
e59d9328
...
...
@@ -285,7 +285,7 @@ static void delete_region_display_list(DVBSubContext *ctx, DVBSubRegion *region)
if
(
obj_disp
)
{
*
obj_disp_ptr
=
obj_disp
->
object_list_next
;
if
(
object
->
display_list
==
NULL
)
{
if
(
!
object
->
display_list
)
{
obj2
=
ctx
->
object_list
;
obj2_ptr
=
&
ctx
->
object_list
;
...
...
@@ -924,7 +924,7 @@ static void dvbsub_parse_clut_segment(AVCodecContext *avctx,
clut
=
get_clut
(
ctx
,
clut_id
);
if
(
clut
==
NULL
)
{
if
(
!
clut
)
{
clut
=
av_malloc
(
sizeof
(
DVBSubCLUT
));
memcpy
(
clut
,
&
default_clut
,
sizeof
(
DVBSubCLUT
));
...
...
@@ -1000,7 +1000,7 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx,
region
=
get_region
(
ctx
,
region_id
);
if
(
region
==
NULL
)
{
if
(
!
region
)
{
region
=
av_mallocz
(
sizeof
(
DVBSubRegion
));
region
->
id
=
region_id
;
...
...
@@ -1064,7 +1064,7 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx,
object
=
get_object
(
ctx
,
object_id
);
if
(
object
==
NULL
)
{
if
(
!
object
)
{
object
=
av_mallocz
(
sizeof
(
DVBSubObject
));
object
->
id
=
object_id
;
...
...
@@ -1138,7 +1138,7 @@ static void dvbsub_parse_page_segment(AVCodecContext *avctx,
display
=
display
->
next
;
}
if
(
display
==
NULL
)
if
(
!
display
)
display
=
av_mallocz
(
sizeof
(
DVBSubRegionDisplay
));
display
->
region_id
=
region_id
;
...
...
@@ -1293,7 +1293,7 @@ static int dvbsub_display_end_segment(AVCodecContext *avctx, uint8_t *buf,
region
=
get_region
(
ctx
,
display
->
region_id
);
rect
=
&
sub
->
rects
[
i
];
if
(
region
==
NULL
)
if
(
!
region
)
continue
;
rect
->
x
=
display
->
x_pos
;
...
...
@@ -1305,7 +1305,7 @@ static int dvbsub_display_end_segment(AVCodecContext *avctx, uint8_t *buf,
clut
=
get_clut
(
ctx
,
region
->
clut
);
if
(
clut
==
NULL
)
if
(
!
clut
)
clut
=
&
default_clut
;
switch
(
region
->
depth
)
{
...
...
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