Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
e723dce6
Commit
e723dce6
authored
Aug 01, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvbsubdec: Use NULL instead of 0 as pointer value
parent
fc94a1ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dvbsubdec.c
libavcodec/dvbsubdec.c
+4
-4
No files found.
libavcodec/dvbsubdec.c
View file @
e723dce6
...
...
@@ -344,7 +344,7 @@ static void delete_state(DVBSubContext *ctx)
/* Should already be null */
if
(
ctx
->
object_list
)
av_log
(
0
,
AV_LOG_ERROR
,
"Memory deallocation error!
\n
"
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"Memory deallocation error!
\n
"
);
}
static
av_cold
int
dvbsub_init_decoder
(
AVCodecContext
*
avctx
)
...
...
@@ -539,7 +539,7 @@ static int dvbsub_read_2bit_string(uint8_t *destbuf, int dbuf_len,
}
if
(
get_bits
(
&
gb
,
6
))
av_log
(
0
,
AV_LOG_ERROR
,
"DVBSub error: line overflow
\n
"
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"DVBSub error: line overflow
\n
"
);
(
*
srcbuf
)
+=
(
get_bits_count
(
&
gb
)
+
7
)
>>
3
;
...
...
@@ -660,7 +660,7 @@ static int dvbsub_read_4bit_string(uint8_t *destbuf, int dbuf_len,
}
if
(
get_bits
(
&
gb
,
8
))
av_log
(
0
,
AV_LOG_ERROR
,
"DVBSub error: line overflow
\n
"
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"DVBSub error: line overflow
\n
"
);
(
*
srcbuf
)
+=
(
get_bits_count
(
&
gb
)
+
7
)
>>
3
;
...
...
@@ -712,7 +712,7 @@ static int dvbsub_read_8bit_string(uint8_t *destbuf, int dbuf_len,
}
if
(
*
(
*
srcbuf
)
++
)
av_log
(
0
,
AV_LOG_ERROR
,
"DVBSub error: line overflow
\n
"
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"DVBSub error: line overflow
\n
"
);
return
pixels_read
;
}
...
...
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