comparison rtsp.c @ 3920:ae2d4ee06a94 libavformat

Reindent after r15927, see discussion in "[PATCH] rtsp cleanup part 1: remove duplicate code" thread on ML.
author rbultje
date Thu, 11 Sep 2008 17:43:44 +0000
parents 1879eab34f88
children 83e51bcb03c2
comparison
equal deleted inserted replaced
3919:1879eab34f88 3920:ae2d4ee06a94
871 static int 871 static int
872 rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st) 872 rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st)
873 { 873 {
874 AVStream *st = NULL; 874 AVStream *st = NULL;
875 875
876 /* open the RTP context */ 876 /* open the RTP context */
877 if (rtsp_st->stream_index >= 0) 877 if (rtsp_st->stream_index >= 0)
878 st = s->streams[rtsp_st->stream_index]; 878 st = s->streams[rtsp_st->stream_index];
879 if (!st) 879 if (!st)
880 s->ctx_flags |= AVFMTCTX_NOHEADER; 880 s->ctx_flags |= AVFMTCTX_NOHEADER;
881 rtsp_st->rtp_ctx = rtp_parse_open(s, st, rtsp_st->rtp_handle, rtsp_st->sdp_payload_type, &rtsp_st->rtp_payload_data); 881 rtsp_st->rtp_ctx = rtp_parse_open(s, st, rtsp_st->rtp_handle, rtsp_st->sdp_payload_type, &rtsp_st->rtp_payload_data);
882 882
883 if (!rtsp_st->rtp_ctx) { 883 if (!rtsp_st->rtp_ctx) {
884 return AVERROR(ENOMEM); 884 return AVERROR(ENOMEM);
885 } else { 885 } else {
886 if(rtsp_st->dynamic_handler) { 886 if(rtsp_st->dynamic_handler) {
887 rtsp_st->rtp_ctx->dynamic_protocol_context= rtsp_st->dynamic_protocol_context; 887 rtsp_st->rtp_ctx->dynamic_protocol_context= rtsp_st->dynamic_protocol_context;
888 rtsp_st->rtp_ctx->parse_packet= rtsp_st->dynamic_handler->parse_packet; 888 rtsp_st->rtp_ctx->parse_packet= rtsp_st->dynamic_handler->parse_packet;
889 } 889 }
890 } 890 }
891 891
892 return 0; 892 return 0;
893 } 893 }
894 894
895 /** 895 /**