Commit 8c895ae7 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'f797b134'

* commit 'f797b134':
  rtpenc_chain: Don't copy the time base to the source stream by default

See: 1fe40e1bMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 4ba85600 f797b134
...@@ -98,9 +98,6 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s, ...@@ -98,9 +98,6 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s,
return ret; return ret;
} }
/* Copy the RTP AVStream timebase back to the original AVStream */
st->time_base = rtpctx->streams[0]->time_base;
*out = rtpctx; *out = rtpctx;
return 0; return 0;
......
...@@ -738,6 +738,7 @@ int ff_rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st) ...@@ -738,6 +738,7 @@ int ff_rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st)
rtsp_st->rtp_handle = NULL; rtsp_st->rtp_handle = NULL;
if (ret < 0) if (ret < 0)
return ret; return ret;
st->time_base = ((AVFormatContext*)rtsp_st->transport_priv)->streams[0]->time_base;
} else if (rt->transport == RTSP_TRANSPORT_RAW) { } else if (rt->transport == RTSP_TRANSPORT_RAW) {
return 0; // Don't need to open any parser here return 0; // Don't need to open any parser here
} else if (rt->transport == RTSP_TRANSPORT_RDT && CONFIG_RTPDEC) } else if (rt->transport == RTSP_TRANSPORT_RDT && CONFIG_RTPDEC)
......
...@@ -158,6 +158,7 @@ static int sap_write_header(AVFormatContext *s) ...@@ -158,6 +158,7 @@ static int sap_write_header(AVFormatContext *s)
if (ret < 0) if (ret < 0)
goto fail; goto fail;
s->streams[i]->priv_data = contexts[i]; 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)); av_strlcpy(contexts[i]->filename, url, sizeof(contexts[i]->filename));
} }
......
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