avformat/segment: Use avformat_alloc_output_context2()
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 2 Sep 2014 10:19:53 +0000 (12:19 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 2 Sep 2014 10:31:04 +0000 (12:31 +0200)
commit0ffe32cf8f922a3538751c68b92840321594950f
tree5e4a723fa6be1c61b03b8fca45dc4939477bbc31
parent3668168afa1ef73928b2c6cc2a6ffa8e8ad82312
avformat/segment: Use avformat_alloc_output_context2()

This avoids having to assign oformat, allows returning the
correct error code and allocates priv_data

Based on patch by: Mika Raento <mika.raento@elisa.fi>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/segment.c