From f21c0b4c433aea33578a2f959820594c2b27ef01 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Fri, 11 Aug 2006 21:21:51 +0000 Subject: [PATCH] export av_interleave_packet_per_dts Originally committed as revision 5984 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avformat.h | 1 + libavformat/utils.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index a71f98145cb..3645fafece5 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -480,6 +480,7 @@ int av_set_parameters(AVFormatContext *s, AVFormatParameters *ap); int av_write_header(AVFormatContext *s); int av_write_frame(AVFormatContext *s, AVPacket *pkt); int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt); +int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush); int av_write_trailer(AVFormatContext *s); diff --git a/libavformat/utils.c b/libavformat/utils.c index 5e00bb33dd4..001c812bbfb 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2418,7 +2418,7 @@ int av_write_frame(AVFormatContext *s, AVPacket *pkt) * packets with pkt->destruct == av_destruct_packet will be freed inside this function. * so they cannot be used after it, note calling av_free_packet() on them is still safe */ -static int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush){ +int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush){ AVPacketList *pktl, **next_point, *this_pktl; int stream_count=0; int streams[MAX_STREAMS]; -- 2.39.2