[FFmpeg-soc] [soc]: r4749 - in rtmp: rtmppkt.c rtmppkt.h rtmpproto.c

kostya subversion at mplayerhq.hu
Wed Jul 22 07:35:32 CEST 2009


Author: kostya
Date: Wed Jul 22 07:35:32 2009
New Revision: 4749

Log:
cosmetics: reindent after last commit

Modified:
   rtmp/rtmppkt.c
   rtmp/rtmppkt.h
   rtmp/rtmpproto.c

Modified: rtmp/rtmppkt.c
==============================================================================
--- rtmp/rtmppkt.c	Wed Jul 22 07:33:53 2009	(r4748)
+++ rtmp/rtmppkt.c	Wed Jul 22 07:35:32 2009	(r4749)
@@ -54,7 +54,7 @@ void rtmp_amf_write_tag(uint8_t **dst, A
 }
 
 int ff_rtmp_packet_read(URLContext *h, RTMPPacket *p,
-                     int chunk_size, RTMPPacket *prev_pkt)
+                        int chunk_size, RTMPPacket *prev_pkt)
 {
     uint8_t hdr, t, buf[16];
     int channel_id, timestamp, data_size, offset = 0, extra = 0;
@@ -119,7 +119,7 @@ int ff_rtmp_packet_read(URLContext *h, R
 }
 
 int ff_rtmp_packet_write(URLContext *h, RTMPPacket *pkt,
-                      int chunk_size, RTMPPacket *prev_pkt)
+                         int chunk_size, RTMPPacket *prev_pkt)
 {
     uint8_t pkt_hdr[16], *p = pkt_hdr;
     int mode = RTMP_PS_TWELVEBYTES;
@@ -151,7 +151,7 @@ int ff_rtmp_packet_write(URLContext *h, 
 }
 
 int ff_rtmp_packet_create(RTMPPacket *pkt, int channel_id, RTMPPacketType type,
-                       int timestamp, int size)
+                          int timestamp, int size)
 {
     pkt->data = av_malloc(size);
     if (!pkt->data)

Modified: rtmp/rtmppkt.h
==============================================================================
--- rtmp/rtmppkt.h	Wed Jul 22 07:33:53 2009	(r4748)
+++ rtmp/rtmppkt.h	Wed Jul 22 07:35:32 2009	(r4749)
@@ -116,7 +116,7 @@ typedef struct RTMPPacket {
  * @return zero on success, -1 otherwise
  */
 int ff_rtmp_packet_create(RTMPPacket *pkt, int channel_id, RTMPPacketType type,
-                       int timestamp, int size);
+                          int timestamp, int size);
 
 /**
  * Frees RTMP packet.
@@ -136,7 +136,7 @@ void ff_rtmp_packet_destroy(RTMPPacket *
  * @return zero on success, -1 otherwise
  */
 int ff_rtmp_packet_read(URLContext *h, RTMPPacket *p,
-                     int chunk_size, RTMPPacket *prev_pkt);
+                        int chunk_size, RTMPPacket *prev_pkt);
 
 /**
  * Sends RTMP packet.
@@ -149,7 +149,7 @@ int ff_rtmp_packet_read(URLContext *h, R
  * @return zero on success, -1 otherwise
  */
 int ff_rtmp_packet_write(URLContext *h, RTMPPacket *p,
-                      int chunk_size, RTMPPacket *prev_pkt);
+                         int chunk_size, RTMPPacket *prev_pkt);
 
 /**
  * Calculates number of bytes needed to skip first AMF entry in data.

Modified: rtmp/rtmpproto.c
==============================================================================
--- rtmp/rtmpproto.c	Wed Jul 22 07:33:53 2009	(r4748)
+++ rtmp/rtmpproto.c	Wed Jul 22 07:35:32 2009	(r4749)
@@ -163,7 +163,7 @@ static void gen_play(URLContext *s, RTMP
 
     //av_log(s, AV_LOG_DEBUG, "Sending play command for '%s'\n", rt->playpath);
     ff_rtmp_packet_create(&pkt, RTMP_VIDEO_CHANNEL, RTMP_PT_INVOKE, 0,
-                       29 + strlen(rt->playpath));
+                          29 + strlen(rt->playpath));
     pkt.extra = rt->main_channel_id;
 
     num = 0.0;
@@ -432,7 +432,7 @@ static int get_packet(URLContext *s, int
         RTMPPacket rpkt;
         int has_data = 0;
         if ((ret = ff_rtmp_packet_read(rt->stream, &rpkt,
-                                    rt->chunk_size, rt->prev_pkt[0])) != 0) {
+                                       rt->chunk_size, rt->prev_pkt[0])) != 0) {
             if (ret > 0) {
                 nanosleep(&ts, NULL);
                 continue;


More information about the FFmpeg-soc mailing list