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
bdc812ab
Commit
bdc812ab
authored
Apr 15, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/flacdec/flac_read_timestamp: free the correct packet
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
6d8ccc7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
flacdec.c
libavformat/flacdec.c
+2
-2
No files found.
libavformat/flacdec.c
View file @
bdc812ab
...
@@ -187,16 +187,16 @@ static av_unused int64_t flac_read_timestamp(AVFormatContext *s, int stream_inde
...
@@ -187,16 +187,16 @@ static av_unused int64_t flac_read_timestamp(AVFormatContext *s, int stream_inde
if
(
ret
==
AVERROR
(
EAGAIN
))
if
(
ret
==
AVERROR
(
EAGAIN
))
continue
;
continue
;
else
else
return
AV_NOPTS_VALUE
;
break
;
}
}
av_init_packet
(
&
out_pkt
);
av_init_packet
(
&
out_pkt
);
ret
=
av_parser_parse2
(
parser
,
st
->
codec
,
ret
=
av_parser_parse2
(
parser
,
st
->
codec
,
&
out_pkt
.
data
,
&
out_pkt
.
size
,
pkt
.
data
,
pkt
.
size
,
&
out_pkt
.
data
,
&
out_pkt
.
size
,
pkt
.
data
,
pkt
.
size
,
pkt
.
pts
,
pkt
.
dts
,
*
ppos
);
pkt
.
pts
,
pkt
.
dts
,
*
ppos
);
av_free_packet
(
&
pkt
);
if
(
out_pkt
.
size
){
if
(
out_pkt
.
size
){
int
size
=
out_pkt
.
size
;
int
size
=
out_pkt
.
size
;
av_free_packet
(
&
out_pkt
);
if
(
parser
->
pts
!=
AV_NOPTS_VALUE
){
if
(
parser
->
pts
!=
AV_NOPTS_VALUE
){
// seeking may not have started from beginning of a frame
// seeking may not have started from beginning of a frame
// calculate frame start position from next frame backwards
// calculate frame start position from next frame backwards
...
...
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