[FFmpeg-soc] [soc]: r2370 - in dvbmuxer: mpegpes.h mpegpesenc.c
bcoudurier
subversion at mplayerhq.hu
Tue Jun 3 22:23:22 CEST 2008
Author: bcoudurier
Date: Tue Jun 3 22:23:22 2008
New Revision: 2370
Log:
rename and static now
Modified:
dvbmuxer/mpegpes.h
dvbmuxer/mpegpesenc.c
Modified: dvbmuxer/mpegpes.h
==============================================================================
--- dvbmuxer/mpegpes.h (original)
+++ dvbmuxer/mpegpes.h Tue Jun 3 22:23:22 2008
@@ -104,15 +104,6 @@ void ff_pes_write_packet(AVFormatContext
int ff_pes_find_beststream(AVFormatContext *ctx, int packet_size, int flush, int64_t *scr, int *best_i);
/**
- * Get total number of frames of PES stream to be muxed considering len
- * @param[in] ctx AVFormatContext
- * @param[in] stream PES stream
- * @param[in] len Bytes available in next PES packet
- * @return Number of frames muxed.
- */
-int ff_pes_get_nb_frames(AVFormatContext *ctx, StreamInfo *stream, int len);
-
-/**
* Write PES data from PES Stream into supplied buffer.
* @param [in] ctx AVFormatContext
* @param [in] stream_index Stream index to write from
Modified: dvbmuxer/mpegpesenc.c
==============================================================================
--- dvbmuxer/mpegpesenc.c (original)
+++ dvbmuxer/mpegpesenc.c Tue Jun 3 22:23:22 2008
@@ -73,7 +73,7 @@ static inline void put_timestamp(uint8_t
bytestream_put_be16(p, (uint16_t)((((timestamp) & 0x7fff) << 1) | 1));
}
-int ff_pes_get_nb_frames(AVFormatContext *ctx, StreamInfo *stream, int len){
+static int get_nb_frames(AVFormatContext *ctx, StreamInfo *stream, int len){
int nb_frames=0;
PacketDesc *pkt_desc= stream->premux_packet;
@@ -188,7 +188,7 @@ int ff_pes_write_buf(AVFormatContext *ct
payload_size, &startcode, stuffing_size,
&trailer_size, pad_packet_bytes);
- nb_frames= ff_pes_get_nb_frames(ctx, stream, *payload_size - *stuffing_size);
+ nb_frames= get_nb_frames(ctx, stream, *payload_size - *stuffing_size);
bytestream_put_be32(&p, startcode);
More information about the FFmpeg-soc
mailing list