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
e960b3e2
Commit
e960b3e2
authored
Sep 17, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/utils: Print warning if reallocating probe buffer failed
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
01b4689d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
utils.c
libavformat/utils.c
+5
-1
No files found.
libavformat/utils.c
View file @
e960b3e2
...
...
@@ -589,8 +589,12 @@ static int probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt)
if
(
pkt
)
{
uint8_t
*
new_buf
=
av_realloc
(
pd
->
buf
,
pd
->
buf_size
+
pkt
->
size
+
AVPROBE_PADDING_SIZE
);
if
(
!
new_buf
)
if
(
!
new_buf
)
{
av_log
(
s
,
AV_LOG_WARNING
,
"Failed to reallocate probe buffer for stream %d
\n
"
,
st
->
index
);
goto
no_packet
;
}
pd
->
buf
=
new_buf
;
memcpy
(
pd
->
buf
+
pd
->
buf_size
,
pkt
->
data
,
pkt
->
size
);
pd
->
buf_size
+=
pkt
->
size
;
...
...
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