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
e2404096
Commit
e2404096
authored
Jan 07, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/segment: Clear contexts after deallocation
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2a741bae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
segment.c
libavformat/segment.c
+5
-4
No files found.
libavformat/segment.c
View file @
e2404096
...
...
@@ -357,7 +357,7 @@ static int segment_end(AVFormatContext *s, int write_trailer, int is_last)
av_freep
(
&
entry
);
}
avio_close
(
seg
->
list_pb
);
avio_close
p
(
&
seg
->
list_pb
);
if
((
ret
=
segment_list_open
(
s
))
<
0
)
goto
end
;
for
(
entry
=
seg
->
segment_list_entries
;
entry
;
entry
=
entry
->
next
)
...
...
@@ -375,7 +375,7 @@ static int segment_end(AVFormatContext *s, int write_trailer, int is_last)
seg
->
segment_count
++
;
end:
avio_close
(
oc
->
pb
);
avio_close
p
(
&
oc
->
pb
);
return
ret
;
}
...
...
@@ -688,7 +688,7 @@ static int seg_write_header(AVFormatContext *s)
}
if
(
ret
<
0
)
{
avio_close
(
oc
->
pb
);
avio_close
p
(
&
oc
->
pb
);
goto
fail
;
}
seg
->
segment_frame_count
=
0
;
...
...
@@ -849,7 +849,7 @@ static int seg_write_trailer(struct AVFormatContext *s)
}
fail:
if
(
seg
->
list
)
avio_close
(
seg
->
list_pb
);
avio_close
p
(
&
seg
->
list_pb
);
av_dict_free
(
&
seg
->
format_options
);
av_opt_free
(
seg
);
...
...
@@ -865,6 +865,7 @@ fail:
}
avformat_free_context
(
oc
);
seg
->
avf
=
NULL
;
return
ret
;
}
...
...
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