[Ffmpeg-devel] [PATCH] Comment mpegtsenc. Add CODEC_TYPE_DATA support

Andy Parkins andrew.parkins
Wed Dec 6 13:08:32 CET 2006

 * To gain understanding, I've commented a large chunk of the file
 * Added CODEC_TYPE_DATA support; fairly simple - dealt with just as
   subtitle packets are - i.e. never buffered, always sent instantly

 * Added CODEC_TYPE_DATA support; but it's done in a roundabout fashion.
   mpegtsenc.c::mpegts_write_pmt() writes all non-video, non-audio
   streams as STREAM_TYPE_PRIVATE_DATA transport PES types.
   mpegts.c::pmt_cb() on the other hand silently dropped any
   STREAM_TYPE_PRIVATE_DATA streams; it doesn't any more, they are now
   treated just like STREAM_TYPE_SUBTITLE_DVB streams. i.e.
   new_pes_av_stream() is called to create a corresponding AVStream
   instance.  However, new_pes_av_stream() would treat
   STREAM_TYPE_PRIVATE_DATA streams as if they were some esoteric MPEG
   stream.  It doesn't any more.  Now, STREAM_TYPE_PRIVATE_DATA sets
   codec_type to CODEC_TYPE_DATA and codec_id to CODEC_ID_NONE.
 * Fixed some hard tabs to be soft tabs as per ffmpeg developers
 libavformat/mpegts.c    |    5 ++
 libavformat/mpegtsenc.c |  108 ++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 108 insertions(+), 5 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1eec9f5d589bec78b7a7935434ce5754b7d5c840.diff
Type: text/x-patch
Size: 12220 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061206/810742ce/attachment.bin>

More information about the ffmpeg-devel mailing list