[FFmpeg-soc] [soc]: r2347 - dvbmuxer/mpegpesenc.c

bcoudurier subversion at mplayerhq.hu
Mon Jun 2 22:32:01 CEST 2008


Author: bcoudurier
Date: Mon Jun  2 22:32:01 2008
New Revision: 2347

Log:
merge init with decl

Modified:
   dvbmuxer/mpegpesenc.c

Modified: dvbmuxer/mpegpesenc.c
==============================================================================
--- dvbmuxer/mpegpesenc.c	(original)
+++ dvbmuxer/mpegpesenc.c	Mon Jun  2 22:32:01 2008
@@ -180,7 +180,7 @@ int ff_pes_write_buf(AVFormatContext *ct
     int header_len, int packet_size, int payload_size, int stuffing_size)
 {
     StreamInfo *stream = ctx->streams[stream_index]->priv_data;
-    int flags, i;
+    int i, flags = 0;
     int data_size = payload_size - stuffing_size;
     uint8_t *q = buf;
 
@@ -188,8 +188,6 @@ int ff_pes_write_buf(AVFormatContext *ct
     bytestream_put_be16(&q, packet_size);
     bytestream_put_byte(&q, 0x80); /* mpeg2 id */
 
-    flags=0;
-
     if (pts != AV_NOPTS_VALUE) {
         flags |= 0x80;
         if (dts != pts)



More information about the FFmpeg-soc mailing list