[FFmpeg-soc] [soc]: r2351 - dvbmuxer/mpegtsenc.c
bcoudurier
subversion at mplayerhq.hu
Tue Jun 3 01:28:00 CEST 2008
Author: bcoudurier
Date: Tue Jun 3 01:27:59 2008
New Revision: 2351
Log:
minimize svn diff
Modified:
dvbmuxer/mpegtsenc.c
Modified: dvbmuxer/mpegtsenc.c
==============================================================================
--- dvbmuxer/mpegtsenc.c (original)
+++ dvbmuxer/mpegtsenc.c Tue Jun 3 01:27:59 2008
@@ -510,9 +510,11 @@ static void retransmit_si_info(AVFormatC
}
}
-static void mpegts_write_pes(AVFormatContext *s, MpegTSWriteStream *ts_st,
+/* NOTE: pes_data contains all the PES packet */
+static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
const uint8_t *payload, int payload_size)
{
+ MpegTSWriteStream *ts_st = st->priv_data;
MpegTSWrite *ts = s->priv_data;
uint8_t buf[TS_PACKET_SIZE];
uint8_t *q;
@@ -645,7 +647,8 @@ 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, ctx->streams[stream_index],
+ stream->payload, q - stream->payload);
put_flush_packet(ctx->pb);
s->packet_number++;
More information about the FFmpeg-soc
mailing list