[FFmpeg-soc] [FFmpeg-devel] [Patch]GSoC 2008 qualification task TS Muxer

zhentan feng spyfeng at gmail.com
Mon Apr 7 10:15:32 CEST 2008


Hi

2008/4/4, Baptiste Coudurier <baptiste.coudurier at smartjog.com>:
> Hi,
>
>  On Fri, Apr 04, 2008 at 01:50:18AM +0800, zhentan feng wrote:
>  > [...]
>  >
>  > --- ff_pes_cal_header_1/mpegpesenc.c  2008-04-03 21:32:51.000000000 +0800
>  > +++ 4.3/mpegpesenc.c  2008-04-04 01:41:44.000000000 +0800
>  > @@ -37,6 +37,7 @@
>
> >      for(i=0;i<ctx->nb_streams;i++) {
>  >          st = ctx->streams[i];
>  >          stream = st->priv_data;
>
> > +        stream->format = PES_FMT_TS;/* just initial for TS */
>  >          av_set_pts_info(st, 64, 1, 90000);
>
>  Separate patch.
>
>
>  > [...]
>  >
>  >          switch(st->codec->codec_type) {
>
> > @@ -397,9 +398,10 @@
>  >   * Write packet into PES FIFO.
>  >   * @param [in] ctx  the AVFormatContext which contains streams.
>  >   * @param [in] pkt  the packet to write.
>  > + * @param [in] the pointer point to variable in PS struct
>  >   * @return  NULL
>  >   */
>  > -void ff_pes_write_packet(AVFormatContext *ctx, AVPacket *pkt)
>  > +void ff_pes_write_packet(AVFormatContext *ctx, AVPacket *pkt, int *packet_number)
>  >  {
>
>  Why a pointer ? Is the variable modified ?
No modified.

The new patch names "ff_pes_write_packet.diff" shows the changes
extract common code of ff_pes_write_packet().
The patch diff with the current code which applied the last patch
names "FMT_assignment_modify.diff".


-- 
Best wishes~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ff_pes_write_packet.diff
Type: application/octet-stream
Size: 4668 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20080407/0e5b9a75/attachment.obj>


More information about the FFmpeg-soc mailing list