[Ffmpeg-devel] [PATCH] Comment mpegtsenc. Add CODEC_TYPE_DATA support
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...
Size: 12220 bytes
Desc: not available
More information about the ffmpeg-devel