[FFmpeg-soc] [soc]: r1850 - dvbmuxer/mpegtsenc.c

bcoudurier subversion at mplayerhq.hu
Tue Jan 29 18:43:53 CET 2008


Author: bcoudurier
Date: Tue Jan 29 18:43:53 2008
New Revision: 1850

Log:
new abi, pb is now a pointer

Modified:
   dvbmuxer/mpegtsenc.c

Modified: dvbmuxer/mpegtsenc.c
==============================================================================
--- dvbmuxer/mpegtsenc.c	(original)
+++ dvbmuxer/mpegtsenc.c	Tue Jan 29 18:43:53 2008
@@ -380,7 +380,7 @@ static MpegTSService *mpegts_add_service
 static void section_write_packet(MpegTSSection *s, const uint8_t *packet)
 {
     AVFormatContext *ctx = s->opaque;
-    put_buffer(&ctx->pb, packet, TS_PACKET_SIZE);
+    put_buffer(ctx->pb, packet, TS_PACKET_SIZE);
 }
 
 static int mpegts_write_header(AVFormatContext *s)
@@ -499,7 +499,7 @@ static int mpegts_write_header(AVFormatC
     for(i = 0; i < ts->nb_services; i++) {
         mpegts_write_pmt(s, ts->services[i]);
     }
-    put_flush_packet(&s->pb);
+    put_flush_packet(s->pb);
 
     return 0;
 
@@ -612,11 +612,11 @@ static void mpegts_write_pes(AVFormatCon
         memcpy(buf + TS_PACKET_SIZE - len, payload + offset, len);
         offset += len;
         payload_size -= len;
-        put_buffer(&s->pb, buf, TS_PACKET_SIZE);
+        put_buffer(s->pb, buf, TS_PACKET_SIZE);
     }
     if(pcr != -1)
         ts->cur_pcr = pcr;
-    put_flush_packet(&s->pb);
+    put_flush_packet(s->pb);
 }
 
 /* Write an MPEG padding packet header. */
@@ -710,7 +710,7 @@ static int flush_packet(AVFormatContext 
         bytestream_put_byte(&q, 0x00);
 
     mpegts_write_pes(ctx, stream, stream->payload, q - stream->payload);
-    put_flush_packet(&ctx->pb);
+    put_flush_packet(ctx->pb);
 
     s->packet_number++;
 



More information about the FFmpeg-soc mailing list