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
71f62751
Commit
71f62751
authored
Sep 27, 2014
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/assdec: make sure to free allocated data in case of error
parent
0e6bad12
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
assdec.c
libavformat/assdec.c
+3
-3
No files found.
libavformat/assdec.c
View file @
71f62751
...
@@ -148,9 +148,6 @@ static int ass_read_header(AVFormatContext *s)
...
@@ -148,9 +148,6 @@ static int ass_read_header(AVFormatContext *s)
sub
->
duration
=
duration
;
sub
->
duration
=
duration
;
}
}
av_bprint_finalize
(
&
line
,
NULL
);
av_bprint_finalize
(
&
rline
,
NULL
);
res
=
avpriv_bprint_to_extradata
(
st
->
codec
,
&
header
);
res
=
avpriv_bprint_to_extradata
(
st
->
codec
,
&
header
);
if
(
res
<
0
)
if
(
res
<
0
)
goto
end
;
goto
end
;
...
@@ -158,6 +155,9 @@ static int ass_read_header(AVFormatContext *s)
...
@@ -158,6 +155,9 @@ static int ass_read_header(AVFormatContext *s)
ff_subtitles_queue_finalize
(
&
ass
->
q
);
ff_subtitles_queue_finalize
(
&
ass
->
q
);
end:
end:
av_bprint_finalize
(
&
header
,
NULL
);
av_bprint_finalize
(
&
line
,
NULL
);
av_bprint_finalize
(
&
rline
,
NULL
);
return
res
;
return
res
;
}
}
...
...
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