Commit 2769212f authored by Rafaël Carré's avatar Rafaël Carré

avformat: put_flush_packet was renamed some time ago (cherry picked from...

avformat: put_flush_packet was renamed some time ago (cherry picked from commit a6ebc7d7)
Signed-off-by: default avatarKO Myung-Hun <komh@chollian.net>
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent b9c17044
......@@ -39,6 +39,11 @@
#include "../../codec/avcodec/avcodec.h"
#include "../../codec/avcodec/avutil.h"
/* Support for deprecated APIs */
#if LIBAVFORMAT_VERSION_INT < ((52<<16)+(105<<8)+0)
# define avio_flush put_flush_packet
#endif
//#define AVFORMAT_DEBUG 1
static const char *const ppsz_mux_options[] = {
......@@ -358,9 +363,9 @@ static int Mux( sout_mux_t *p_mux )
}
#if LIBAVFORMAT_VERSION_INT >= ((52<<16)+(0<<8)+0)
put_flush_packet( p_sys->oc->pb );
avio_flush( p_sys->oc->pb );
#else
put_flush_packet( &p_sys->oc->pb );
avio_flush( &p_sys->oc->pb );
#endif
p_sys->b_write_header = false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment