projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2e7816
)
lavf/segment: remove duplicated and inconsistent cleanup code in seg_write_packet()
author
Stefano Sabatini
<stefasab@gmail.com>
Tue, 21 Jan 2014 18:58:41 +0000
(19:58 +0100)
committer
Stefano Sabatini
<stefasab@gmail.com>
Tue, 21 Jan 2014 19:08:36 +0000
(20:08 +0100)
In particular, avoid to leave around the seg->avf pointer to freed
structure, and fix crash with:
ffmpeg -f lavfi -i testsrc -c:v h264 -map 0 -f segment foo-%d.ts
libavformat/segment.c
patch
|
blob
|
history
diff --git
a/libavformat/segment.c
b/libavformat/segment.c
index
91c1432
..
bf5f4fb
100644
(file)
--- a/
libavformat/segment.c
+++ b/
libavformat/segment.c
@@
-731,12
+731,6
@@
fail:
if (pkt->stream_index == seg->reference_stream_index)
seg->frame_count++;
- if (ret < 0) {
- if (seg->list)
- avio_close(seg->list_pb);
- avformat_free_context(oc);
- }
-
return ret;
}