Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2014-01-21 22:58:41 +0400
committerStefano Sabatini <stefasab@gmail.com>2014-01-21 23:08:36 +0400
commit169065fbfb3da1ab776379c333aebc54bb1f1bc4 (patch)
tree3efc987146f05e68e5d129a67f53ad3456e75fc1 /libavformat/segment.c
parenta2e78161ce77950b2956f58282c19f8fde825b8a (diff)
lavf/segment: remove duplicated and inconsistent cleanup code in seg_write_packet()
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
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r--libavformat/segment.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 91c143272b..bf5f4fb407 100644
--- 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;
}