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

bcoudurier subversion at mplayerhq.hu
Mon Jun 2 22:27:44 CEST 2008


Author: bcoudurier
Date: Mon Jun  2 22:27:44 2008
New Revision: 2344

Log:
simplify

Modified:
   dvbmuxer/mpegtsenc.c

Modified: dvbmuxer/mpegtsenc.c
==============================================================================
--- dvbmuxer/mpegtsenc.c	(original)
+++ dvbmuxer/mpegtsenc.c	Mon Jun  2 22:27:44 2008
@@ -625,7 +625,6 @@ static int flush_packet(AVFormatContext 
     int pad_packet_bytes = 0;
     int general_pack = 0;  /*"general" pack without data specific to one stream?*/
     int pes_size;
-    uint8_t *q = stream->payload;
 
     pes_stream->format = PES_FMT_TS;
     id = stream->id;
@@ -641,7 +640,6 @@ static int flush_packet(AVFormatContext 
                  packet_size, payload_size, stuffing_size);
         if(pes_size < 0)
             return -1;
-        q += pes_size;
     }else{
         payload_size=
         stuffing_size= 0;
@@ -653,7 +651,7 @@ static int flush_packet(AVFormatContext 
     for(i=0;i<zero_trail_bytes;i++)
         bytestream_put_byte(&q, 0x00);
 
-    mpegts_write_pes(ctx, stream, stream->payload, q - stream->payload);
+    mpegts_write_pes(ctx, stream, stream->payload, pes_size);
     put_flush_packet(ctx->pb);
 
     s->packet_number++;



More information about the FFmpeg-soc mailing list