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
8cd5be98
Commit
8cd5be98
authored
Nov 09, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use FF_INPUT_BUFFER_PADDING_SIZE
Originally committed as revision 1181 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
b1d89f82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
utils.c
libav/utils.c
+6
-4
No files found.
libav/utils.c
View file @
8cd5be98
...
@@ -147,8 +147,8 @@ AVInputFormat *av_find_input_format(const char *short_name)
...
@@ -147,8 +147,8 @@ AVInputFormat *av_find_input_format(const char *short_name)
*/
*/
int
av_new_packet
(
AVPacket
*
pkt
,
int
size
)
int
av_new_packet
(
AVPacket
*
pkt
,
int
size
)
{
{
int
64_t
*
p
;
int
i
;
pkt
->
data
=
av_malloc
(
size
+
9
);
pkt
->
data
=
av_malloc
(
size
+
FF_INPUT_BUFFER_PADDING_SIZE
);
if
(
!
pkt
->
data
)
if
(
!
pkt
->
data
)
return
AVERROR_NOMEM
;
return
AVERROR_NOMEM
;
pkt
->
size
=
size
;
pkt
->
size
=
size
;
...
@@ -156,8 +156,10 @@ int av_new_packet(AVPacket *pkt, int size)
...
@@ -156,8 +156,10 @@ int av_new_packet(AVPacket *pkt, int size)
pkt
->
pts
=
AV_NOPTS_VALUE
;
pkt
->
pts
=
AV_NOPTS_VALUE
;
pkt
->
stream_index
=
0
;
pkt
->
stream_index
=
0
;
pkt
->
flags
=
0
;
pkt
->
flags
=
0
;
p
=
(
int64_t
*
)
&
pkt
->
data
[
size
];
*
p
=
0
;
for
(
i
=
0
;
i
<
FF_INPUT_BUFFER_PADDING_SIZE
;
i
++
)
pkt
->
data
[
size
+
i
]
=
0
;
return
0
;
return
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