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
4ccd7cb4
Commit
4ccd7cb4
authored
Apr 06, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/oggdec/ogg_read_packet(): factorize failure code path
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c1b24ca7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
oggdec.c
libavformat/oggdec.c
+9
-10
No files found.
libavformat/oggdec.c
View file @
4ccd7cb4
...
...
@@ -793,11 +793,8 @@ retry:
uint8_t
*
side_data
=
av_packet_new_side_data
(
pkt
,
AV_PKT_DATA_SKIP_SAMPLES
,
10
);
if
(
side_data
==
NULL
)
{
av_free_packet
(
pkt
);
av_free
(
pkt
);
return
AVERROR
(
ENOMEM
);
}
if
(
side_data
==
NULL
)
goto
fail
;
AV_WL32
(
side_data
+
4
,
os
->
end_trimming
);
os
->
end_trimming
=
0
;
}
...
...
@@ -806,17 +803,19 @@ retry:
uint8_t
*
side_data
=
av_packet_new_side_data
(
pkt
,
AV_PKT_DATA_METADATA_UPDATE
,
os
->
new_metadata_size
);
if
(
side_data
==
NULL
)
{
av_free_packet
(
pkt
);
av_free
(
pkt
);
return
AVERROR
(
ENOMEM
);
}
if
(
side_data
==
NULL
)
goto
fail
;
memcpy
(
side_data
,
os
->
new_metadata
,
os
->
new_metadata_size
);
av_freep
(
&
os
->
new_metadata
);
os
->
new_metadata_size
=
0
;
}
return
psize
;
fail:
av_free_packet
(
pkt
);
av_free
(
pkt
);
return
AVERROR
(
ENOMEM
);
}
static
int64_t
ogg_read_timestamp
(
AVFormatContext
*
s
,
int
stream_index
,
...
...
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