summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
Commit message (Collapse)AuthorAge
* bitstream: add get_bits64() to support reading more than 32 bits at onceMichael Niedermayer2012-12-07
| | | | | | | Also remove a duplicate function in the MPEG-TS demuxer. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mpegts: Drop pointless casting of hex_dump_debug argumentsDiego Biurrun2012-10-01
|
* avformat: Convert some commented-out printf/av_log instances to av_dlogDiego Biurrun2012-10-01
|
* mpegts: check substreams before discardingChristian Schmidt2012-09-12
| | | | | | Allow to extract the AC3 core from TrueHD with the "copy" codec. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* Improve descriptiveness of a number of codec and container long namesDiego Biurrun2012-07-30
|
* mpegts: remove unused/incomplete/broken seeking codeRonald S. Bultje2012-06-19
|
* mpegts: Remove disabled extension matching probe.Alex Converse2012-06-07
|
* mpegts: Some additional HDMV types and reg descriptors for mpegtsJoakim Plate2012-05-03
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* mpegts: Make sure we don't return uninitialized packetsMartin Storsjö2012-04-27
| | | | | | | | | This fixes crashes, where the demuxer could return 0 even if the returned AVPacket isn't initialized at all. This could happen if running into EOF or running out of probesize with non-seekable sources. Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegts: Try seeking back even for nonseekable protocolsMartin Storsjö2012-04-23
| | | | | | | | | | | | | | | | | The mpegts demuxer reads 5 KB at startup just for discovering the packet size. Since the default avio buffer size is 32 KB, the seek back to the start will in most cases be within the avio buffer, and will in most cases succeed even if the actual protocol isn't seekable. This makes the demuxer startup faster/with less data when reading data from a non-seekable input, by not skipping the first few KB. If it fails, don't warn if the protocol isn't seekable, making it behave as before in the failure case. Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Align muxer/demuxer declarationsMartin Storsjö2012-04-06
| | | | | | | Also add missing trailing commas, break long codec_tag lines and add spaces in codec_tag declarations. Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegts: Fix dead error checksAlex Converse2012-03-26
|
* mpegts: Always honor a registration descriptor if present and there is no ↵Alex Converse2012-03-09
| | | | other codec information.
* mpegts: Pad the packet buffer in handle_packet().Alex Converse2012-03-02
| | | | | | | This allows it to be used with get_bits without the thread of overreads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mpegts: Do not call read_sl_header() when no bytes remain in the buffer.Alex Converse2012-03-02
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lavf: remove AVFormatParameters from AVFormatContext.read_header signatureAnton Khirnov2012-01-27
|
* mpegts: Suppress invalid timebase warnings on DMB streams.Alex Converse2011-12-20
| | | | timestamp_len and timestamp_res intialize to zero.
* mpegts: Fix typo in handling sections in the PMT.Alex Converse2011-12-20
| | | | | This was an error rebasing 4682a1dc3aa2554ad7077f5db32d0f2d598d018e for commit. The "pes" variable guaranteed to be NULL in that block.
* mpegts: replace some magic numbers with the existing defineVladimir Pantelic2011-12-16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all uses of av_close_input_file() with avformat_close_input().Anton Khirnov2011-12-12
|
* lavf: deprecate av_close_input_stream().Anton Khirnov2011-12-12
| | | | And remove all its uses.
* Fix a bunch of common typos.Diego Biurrun2011-12-11
|
* lavf: make av_set_pts_info private.Anton Khirnov2011-11-30
| | | | It's supposed to be called only from (de)muxers.
* mpegts: set stream id on just created stream, not an unrelated variableAnton Khirnov2011-11-08
| | | | | Bug introduced in 84ad31ff180fa089cd6bfd93c246336a16036455. Thanks to Uoti Urpala for finding it.
* Remove some stray unnecessary ffmpeg references.Diego Biurrun2011-11-02
|
* mpegts: MP4 SL supportAlex Converse2011-10-28
|
* mpegts: MP4 OD supportAlex Converse2011-10-28
|
* mpegts: Add support for Sections in PMTAlex Converse2011-10-28
|
* mpegts: Replace the MP4 descriptor parser with a recursive parser.Alex Converse2011-10-28
|
* mpegts: Add support for multiple mp4 descriptorsAlex Converse2011-10-28
|
* mpegts: Parse mpeg2 SL descriptors.Alex Converse2011-10-28
|
* lavf: make some seeking functions privateAnton Khirnov2011-10-28
| | | | | | | Specifically av_update_cur_dts(), av_seek_frame_binary() and av_gen_search(). They are not supposed to be called outside lavf.
* lavf: replace av_new_stream->avformat_new_stream part II.Anton Khirnov2011-10-19
| | | | | | | | Manual replacements are done in this commit. In many cases, the id is some constant made up number (e.g. 0 for video and 1 for audio), which is then not used in the demuxer for anything. Those ids are removed.
* lavf,lavd: replace av_new_stream->avformat_new_stream part I.Anton Khirnov2011-10-19
| | | | | Trivial replacements with sed are done in this commit: sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-12
|
* Fix av_dlog invocations with wrong or missing logging context.Diego Biurrun2011-09-21
| | | | This fixes build failures with -DDEBUG in CPPFLAGS.
* mpegts: improve error reportingGeorgi Chorbadzhiyski2011-09-11
| | | | | | When reporting continuity error show pid, expected and received cc. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: on seek, reset the cc for all PIDsAviad Rozenhek2011-09-11
| | | | | | Prevent false positive continuity counter error logs. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mp4: Handle non-trivial ES Descriptors.Alex Converse2011-08-25
|
* mpegts: log into an AVFormatContext rather than MpegTSContext.Alex Converse2011-08-16
| | | | MpegTSContext's AVClass member can be NULL.
* lavf,lavd: remove all usage of AVFormatParameters from demuxers.Anton Khirnov2011-08-15
| | | | | | AVFormatParameters are converted into corresponding private options in av_open_input_file/stream() compat wrappers, so accessing them from demuxers is redundant.
* mpegts: Mark wrongly-sized packets as corruptedZohar Kelrich2011-08-02
| | | | | Signed-off-by: Zohar Kelrich <lumimies@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: Move scan test to handle_packetsZohar Kelrich2011-08-02
| | | | | | | | This fixes an issue where packets which start being read while reading the header stick around after a seek. Signed-off-by: Zohar Kelrich <lumimies@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: Mark corrupted packetsZohar Kelrich2011-08-02
| | | | | Signed-off-by: Zohar Kelrich <lumimies@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: Reset continuity counter on seekZohar Kelrich2011-08-02
| | | | | Signed-off-by: Zohar Kelrich <lumimies@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: Fix for continuity counterZohar Kelrich2011-08-02
| | | | | | | | Make continuity counter respect discontinuity flag and null packets. Unpack the adaptation_field_control field. Signed-off-by: Zohar Kelrich <lumimies@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: Silence "can't seek" warning on unseekableZohar Kelrich2011-08-02
| | | | | | | | Do not try to seek when we already know we are not allowed to. Silences warning that always happens when streaming. Signed-off-by: Zohar Kelrich <lumimies@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: remove invalid error checkMike Williams2011-07-29
| | | | | | | | mpegts_read_header is used by both mpegts and mpegtsraw, so this erro check is no longer valid. Signed-off-by: Mike Williams <mike@mikebwilliams.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>