From f797b134cad4d248b1c8955659997980d0668bc3 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sat, 31 May 2014 01:09:58 +0300 Subject: rtpenc_chain: Don't copy the time base to the source stream by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only copy it manually in the muxers where it makes sense (rtspenc, sapenc). Don't touch the original AVStream in movenchint, where the original AVStream should be kept untouched. This fixes the normal tracks in RTP hinted files after abb810db - the hint tracks were ok while the normal media tracks were broken, noticed by Michael Niedermayer. This reverts abb810db but achieves the same effect for the other muxers. Signed-off-by: Martin Storsjö --- libavformat/sapenc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/sapenc.c') diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c index 7e2bba7a28..246b7cfa14 100644 --- a/libavformat/sapenc.c +++ b/libavformat/sapenc.c @@ -157,6 +157,7 @@ static int sap_write_header(AVFormatContext *s) if (ret < 0) goto fail; s->streams[i]->priv_data = contexts[i]; + s->streams[i]->time_base = contexts[i]->streams[0]->time_base; av_strlcpy(contexts[i]->filename, url, sizeof(contexts[i]->filename)); } -- cgit v1.2.3