Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
94d45a13
Commit
94d45a13
authored
Jul 10, 2019
by
Cameron Cawley
Committed by
Michael Niedermayer
Jul 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/rpl: Replace strcpy with av_strlcpy
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
925e33b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
rpl.c
libavformat/rpl.c
+1
-1
No files found.
libavformat/rpl.c
View file @
94d45a13
...
@@ -200,7 +200,7 @@ static int rpl_read_header(AVFormatContext *s)
...
@@ -200,7 +200,7 @@ static int rpl_read_header(AVFormatContext *s)
ast
->
codecpar
->
channels
=
read_line_and_int
(
pb
,
&
error
);
// number of audio channels
ast
->
codecpar
->
channels
=
read_line_and_int
(
pb
,
&
error
);
// number of audio channels
error
|=
read_line
(
pb
,
line
,
sizeof
(
line
));
error
|=
read_line
(
pb
,
line
,
sizeof
(
line
));
ast
->
codecpar
->
bits_per_coded_sample
=
read_int
(
line
,
&
endptr
,
&
error
);
// audio bits per sample
ast
->
codecpar
->
bits_per_coded_sample
=
read_int
(
line
,
&
endptr
,
&
error
);
// audio bits per sample
strcpy
(
audio_type
,
endptr
);
av_strlcpy
(
audio_type
,
endptr
,
RPL_LINE_LENGTH
);
// At least one sample uses 0 for ADPCM, which is really 4 bits
// At least one sample uses 0 for ADPCM, which is really 4 bits
// per sample.
// per sample.
if
(
ast
->
codecpar
->
bits_per_coded_sample
==
0
)
if
(
ast
->
codecpar
->
bits_per_coded_sample
==
0
)
...
...
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