summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
Commit message (Collapse)AuthorAge
* lavf/mpegts: Reduce number of "Predefined SLConfigDescriptor" warnings shown.Carl Eugen Hoyos2014-06-09
|
* mpegts: always reset pes packet state on new packetMarton Balint2014-05-05
| | | | | | Fixes ticket #3584. Signed-off-by: Marton Balint <cus@passwd.hu>
* mpegts: unref buffer in reset_pes_packet_stateMarton Balint2014-05-05
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* mpegts: factorize pes packet state reset functionMarton Balint2014-05-05
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* mpegts: fix indentation after last commitMarton Balint2014-05-05
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* mpegts: only emit new packets if data buffer existsMarton Balint2014-05-05
| | | | | | | | | I don't think this can acutally happen in the current code, but better safe than sorry. Fixes Coverity CID 732217. Signed-off-by: Marton Balint <cus@passwd.hu>
* mpegts: remove uneeded buf_size checkMarton Balint2014-05-05
| | | | | | It is already ensured by the loop condition Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mpegts: Remove redundant checkMichael Niedermayer2014-04-16
| | | | | | Fixes part of Ticket3466 Found-by: Andrey_Karpov / PVS-Studio Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* mpegts: fix teletext pts of streams with standalone pcr pidMarton Balint2014-03-22
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* mpegts: add pcr filter for tracking standalone pcr pidsMarton Balint2014-03-22
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* mpegts: factorize mpegts filter creator codeMarton Balint2014-03-22
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* mpegts: move last_pcr to MpegTSFilter levelMarton Balint2014-03-22
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* Merge commit 'ca80e15814b77efe8d0ff5a5b0220754bb6c4065'Michael Niedermayer2014-03-18
|\ | | | | | | | | | | | | | | | | | | * commit 'ca80e15814b77efe8d0ff5a5b0220754bb6c4065': mpegts: Forward error codes in various functions Conflicts: libavformat/mpegts.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegts: Forward error codes in various functionsKeiji Costantini2014-03-18
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '86ba2327e1cf35c6f77d5fb516a1a7a8dce0b98a'Michael Niedermayer2014-03-18
|\| | | | | | | | | | | | | | | | | | | * commit '86ba2327e1cf35c6f77d5fb516a1a7a8dce0b98a': mpegts: K&R formatting cosmetics Conflicts: libavformat/mpegts.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegts: K&R formatting cosmeticsKeiji Costantini2014-03-18
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | mpegts: use goto out instead of break on truncated or invalid pmt tablesMarton Balint2014-03-05
| | | | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '5397386effba2e53e4ff82852a86f6be4d59e9c1'Michael Niedermayer2014-03-04
|\| | | | | | | | | | | | | * commit '5397386effba2e53e4ff82852a86f6be4d59e9c1': mathops: move macro to the only place it is used Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mathops: move macro to the only place it is usedVittorio Giovara2014-03-04
| | | | | | | | This helps in disentangling lavf and lavc too.
* | Revert "mpegts: do not set pts for missing dts in video streams"Michael Niedermayer2014-03-02
| | | | | | | | | | | | | | | | | | This reverts commit f65afef1df49f53e14c8d4173ff960fff8d44ecb. If only pts is coded then dts must be equal pts See Rec. ITU-T H.222.0 (06/2012) / ISO/IEC 13818-1:2013 (E) 2.7.5 Found-by: Baptiste Coudurier
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-02-20
|\| | | | | | | | | | | | | | | | | | | | | * qatar/master: libavformat/mpegts: expose raw packet size Conflicts: libavformat/mpegts.c See: f9b997c337873dad99f7fd505588b260febaf32b Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libavformat/mpegts: expose raw packet sizeLeandro Dorileo2014-02-19
| | | | | | | | | | | | | | | | We cannot easily determine if an mpeg TS's packet size is DVHS, FEC or so on, for that we need to expose the internal raw_packet_size field. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * mpegts: add HEVC registration descriptorCarl Eugen Hoyos2013-12-12
| |
| * mpegts: Support HEVC demuxingMickaël Raulet2013-10-31
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | avformat/mpegts: DVB subtitles multiple languages supportmrlika2014-02-14
| | | | | | | | | | | | | | | | Copy multiple languages data from PMT to extradata. New 5 bytes per language extradata format. Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/mpegts: Continue parsing PMTs until at least 2 streams are found or ↵Michael Niedermayer2014-01-29
| | | | | | | | | | | | | | | | | | | | 100kb are reached This (ugly) hack fixes Ticket3348 If someone has an idea on how to fix this nicer, that would be very welcome but the stream contains several PMTs with just one of the 2 streams at the start Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/mpegts: drop stray spaceMichael Niedermayer2014-01-29
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mpegts demuxer: store PMT values of DVB teletext to extradataSerhii Marchuk2014-01-24
| | | | | | | | | | | | | | | | | | * Using extradata by TS demuxer to store values from PMT * Support of multiple languages in one DVB teletext stream: comma separated language codes in metadata "language" field Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/mpegts: demux timed ID3 metadataAnssi Hannula2013-12-31
| | | | | | | | | | | | | | | | | | | | Used in some HLS streams ("Timed Metadata for HTTP Live Streaming"). This is just ID3 tags at arbitrary stream positions, but I still added "timed" to the codec name to avoid confusion with regular non-stream ID3 tags. Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
* | avformat/mpegts: check sl.timestamp_lenMichael Niedermayer2013-12-27
| | | | | | | | | | | | | | Fixes: msan_uninit-mem_7ff4404547ba_4883_dmbts.ts Fixes assertion failure Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavformat/mpegts: expose raw packet sizeLeandro Dorileo2013-12-19
| | | | | | | | | | | | | | | | | | We cannot easily determine if an mpeg TS's packet size is DVHS, FEC or so on, for that we need to expose the internal raw_packet_size field. Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mpegts: stop analyzing when pmt for all programs have been foundJoakim Plate2013-12-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This disables NOHEADER after finding PMT for all programs to avoid find_stream_info always exhausting probe size for mpegts. This is very important for live streams since read speed will be limited. rtsp, udp and any protocol streaming a live mpegts will have dramatically faster startup time. Note, lack of codec parameters for streams can still cause the full probe size to be exhausted. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mpegts: do not set pts for missing dts in video streamsRainer Hochecker2013-12-04
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/mpegts: fix resync seekMichael Niedermayer2013-11-18
| | | | | | | | | | | | | | | | The seek ended up seeking before the begin, which caused problems Fixes initial sync issues with libbluray Fixes Ticket3117 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mpegts: only calculate stat index when its needed during probeMichael Niedermayer2013-11-09
| | | | | | | | | | | | 40% faster probe Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/mpegts: do not hardcode type used in memset()Michael Niedermayer2013-11-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mpegts: demux synchronous SMPTE 336M Key-Length-Value (KLV) metadataPeter Ross2013-10-28
| | | | | | | | Fixes ticket #2579.
* | Support HEVC in transport streams.Carl Eugen Hoyos2013-10-16
| |
* | hevc: add ts demux supportMickaël Raulet2013-10-15
| | | | | | | | | | | | cherry picked from commit 925ee44364a7bce58e2ac5bac91077ce0a75d883 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat: use ff_alloc_extradata()Paul B Mahol2013-10-13
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat/mpegts: check avio_tell() return code before using itMichael Niedermayer2013-09-26
| | | | | | | | | | | | Fixes Ticket2962 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'f369b9356c4606cd4d713d60f7db5de119d901fa'Michael Niedermayer2013-09-11
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'f369b9356c4606cd4d713d60f7db5de119d901fa': avformat: Use av_reallocp_array() where suitable Conflicts: libavformat/asfenc.c libavformat/gxfenc.c libavformat/mov.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avformat: Use av_reallocp_array() where suitableAlexandra Khirnova2013-09-10
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | avformat/mpegts: Ensure that mpegts_get_dts() only considers packets at or ↵Michael Niedermayer2013-09-04
| | | | | | | | | | | | | | | | | | | | | | after the given position This fixes an infinite loop An alternative fix would be to revert d73cbc22c5f2c305838d9867538cf4ad59c4035f but that would worsen error resilience. Found-by: Justin Ruggles Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/mpegts: resync from the smallest packet size onMichael Niedermayer2013-08-18
| | | | | | | | | | | | | | This avoids the loss of a packet in many cases if the packet size was wrong. It also improves detection of packet size changes Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mpegts_get_pcr: dont loose a packet when resyncingMichael Niedermayer2013-08-18
| | | | | | | | | | | | This matches how read_packet() works Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mpegts: fix pos47_fullMichael Niedermayer2013-08-18
| | | | | | | | | | | | The value was off by a packet Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/mpegts: print packet size warning only if new size differs from oldMichael Niedermayer2013-08-18
| | | | | | | | | | | | | | No case is known to have triggered this, but its more correct to check that the new size differs. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mpegts: reanalyze packet size on mismatchesMichael Niedermayer2013-08-18
| | | | | | | | | | | | | | Fixes Ticket1812 Fixes Ticket2838 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '5afe1d27912be9b643ffb4ddc21f6d920260dbb0'Michael Niedermayer2013-08-08
|\| | | | | | | | | | | | | | | | | | | * commit '5afe1d27912be9b643ffb4ddc21f6d920260dbb0': avio: Add const qualifiers to ffio_read_indirect Conflicts: libavformat/mpegts.c Merged-by: Michael Niedermayer <michaelni@gmx.at>