|
|
@ -3068,7 +3068,9 @@ static int ff_interleave_compare_dts(AVFormatContext *s, AVPacket *next, AVPacke |
|
|
|
return comp > 0; |
|
|
|
return comp > 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush){ |
|
|
|
int ff_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, |
|
|
|
|
|
|
|
AVPacket *pkt, int flush) |
|
|
|
|
|
|
|
{ |
|
|
|
AVPacketList *pktl; |
|
|
|
AVPacketList *pktl; |
|
|
|
int stream_count=0; |
|
|
|
int stream_count=0; |
|
|
|
int i; |
|
|
|
int i; |
|
|
@ -3098,6 +3100,14 @@ int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, AVPacket *pk |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if FF_API_INTERLEAVE_PACKET |
|
|
|
|
|
|
|
int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, |
|
|
|
|
|
|
|
AVPacket *pkt, int flush) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return ff_interleave_packet_per_dts(s, out, pkt, flush); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Interleave an AVPacket correctly so it can be muxed. |
|
|
|
* Interleave an AVPacket correctly so it can be muxed. |
|
|
|
* @param out the interleaved packet will be output here |
|
|
|
* @param out the interleaved packet will be output here |
|
|
@ -3114,7 +3124,7 @@ static int interleave_packet(AVFormatContext *s, AVPacket *out, AVPacket *in, in |
|
|
|
av_free_packet(in); |
|
|
|
av_free_packet(in); |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} else |
|
|
|
} else |
|
|
|
return av_interleave_packet_per_dts(s, out, in, flush); |
|
|
|
return ff_interleave_packet_per_dts(s, out, in, flush); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt){ |
|
|
|
int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt){ |
|
|
|