# HG changeset patch # User rbultje # Date 1221155024 0 # Node ID ae2d4ee06a94db05a9c27ffb00913bed04d469d5 # Parent 1879eab34f88f56547a856b2b3973a7bf0e5249d Reindent after r15927, see discussion in "[PATCH] rtsp cleanup part 1: remove duplicate code" thread on ML. diff -r 1879eab34f88 -r ae2d4ee06a94 rtsp.c --- a/rtsp.c Thu Sep 11 17:43:04 2008 +0000 +++ b/rtsp.c Thu Sep 11 17:43:44 2008 +0000 @@ -873,21 +873,21 @@ { AVStream *st = NULL; - /* open the RTP context */ - if (rtsp_st->stream_index >= 0) - st = s->streams[rtsp_st->stream_index]; - if (!st) - s->ctx_flags |= AVFMTCTX_NOHEADER; - rtsp_st->rtp_ctx = rtp_parse_open(s, st, rtsp_st->rtp_handle, rtsp_st->sdp_payload_type, &rtsp_st->rtp_payload_data); + /* open the RTP context */ + if (rtsp_st->stream_index >= 0) + st = s->streams[rtsp_st->stream_index]; + if (!st) + s->ctx_flags |= AVFMTCTX_NOHEADER; + rtsp_st->rtp_ctx = rtp_parse_open(s, st, rtsp_st->rtp_handle, rtsp_st->sdp_payload_type, &rtsp_st->rtp_payload_data); - if (!rtsp_st->rtp_ctx) { - return AVERROR(ENOMEM); - } else { - if(rtsp_st->dynamic_handler) { - rtsp_st->rtp_ctx->dynamic_protocol_context= rtsp_st->dynamic_protocol_context; - rtsp_st->rtp_ctx->parse_packet= rtsp_st->dynamic_handler->parse_packet; - } + if (!rtsp_st->rtp_ctx) { + return AVERROR(ENOMEM); + } else { + if(rtsp_st->dynamic_handler) { + rtsp_st->rtp_ctx->dynamic_protocol_context= rtsp_st->dynamic_protocol_context; + rtsp_st->rtp_ctx->parse_packet= rtsp_st->dynamic_handler->parse_packet; } + } return 0; }