lavf/segment: remove duplicated and inconsistent cleanup code in seg_write_packet()
authorStefano Sabatini <stefasab@gmail.com>
Tue, 21 Jan 2014 18:58:41 +0000 (19:58 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 21 Jan 2014 19:08:36 +0000 (20:08 +0100)
commit169065fbfb3da1ab776379c333aebc54bb1f1bc4
tree3efc987146f05e68e5d129a67f53ad3456e75fc1
parenta2e78161ce77950b2956f58282c19f8fde825b8a
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
libavformat/segment.c