b009267910 
								
							
								 
							
						 
						
							
							
								
								mpegts: only reopen pmt_cb filter if its different from the previous.  
							
							Fixes Ticket2632
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8a8d9a7385 
								
							
								 
							
						 
						
							
							
								
								mpegts: use ffio_ensure_seekback()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4e99660493 
								
							
								 
							
						 
						
							
							
								
								mpegts: use seek_back() for all seek backs  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a5f23d8da0 
								
							
								 
							
						 
						
							
							
								
								mpegts: factor seek_back() out  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b7c6685268 
								
							
								 
							
						 
						
							
							
								
								mpegts_read_header: goto fail instead of return directly  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								81cf53e133 
								
							
								 
							
						 
						
							
							
								
								mpegts: add support for stream_type 0x42, which is CAVS  
							
							This allows demuxing and muxing of CAVS TS streams.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1ecdf8912b 
								
							
								 
							
						 
						
							
							
								
								avformat: av_log_ask_for_sample() ---> avpriv_request_sample()  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								63d744e2be 
								
							
								 
							
						 
						
							
							
								
								av_log_missing_feature() ---> avpriv_report_missing_feature()  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								806a66fd08 
								
							
								 
							
						 
						
							
							
								
								mpegts: clear avprograms only for removed programs  
							
							Fixes Ticket2186
Requested-by: carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1afddbe59e 
								
							
								 
							
						 
						
							
							
								
								avpacket: use AVBuffer to allow refcounting the packets.  
							
							This will allow us to avoid copying the packets in many cases.
This breaks ABI. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f8b6d4818e 
								
							
								 
							
						 
						
							
							
								
								Only try to auto-detect LATM in mpegts if the LOAS demuxer was configured.  
							
							This allows to decode LATM-in-mpegts without the LOAS demuxer. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a717f99042 
								
							
								 
							
						 
						
							
							
								
								mpegts: Share the cleanup code between the demuxer and lavf-internal parser functions  
							
							The lavf-internal parser functions are used when receiving
mpegts over RTP. This fixes memory leaks in this setup.
The normal mpegts demuxer close function was updated in ec7d0d2e 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4c41fc88df 
								
							
								 
							
						 
						
							
							
								
								mpegts: update AVProgram after pmt change  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7726916c14 
								
							
								 
							
						 
						
							
							
								
								mpegts: check av_new_stream() return value.  
							
							Fixes CID703728
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9282fbb9ad 
								
							
								 
							
						 
						
							
							
								
								mpegts: demux asynchronous SMPTE 336M Key-Length-Value (KLV) metadata  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b2b12a1022 
								
							
								 
							
						 
						
							
							
								
								mpegts: rename get_bits64 to get_ts64  
							
							Renaming because of name conflict
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								41540b36a1 
								
							
								 
							
						 
						
							
							
								
								bitstream: add get_bits64() to support reading more than 32 bits at once  
							
							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> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								03290ffb57 
								
							
								 
							
						 
						
							
							
								
								mpegts: check that codec is not open in mpegts_find_stream_type  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8897b5aa4c 
								
							
								 
							
						 
						
							
							
								
								mpegts_set_stream_info: remove unneeded codec id check  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eab022d863 
								
							
								 
							
						 
						
							
							
								
								mpegts: prevent freeing ones own section in pat_cb  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4facddd568 
								
							
								 
							
						 
						
							
							
								
								mpegts: dont set stream info when a decoder has already been opened.  
							
							Fixes assertion failure.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								327cd0d09b 
								
							
								 
							
						 
						
							
							
								
								mpegts: prevent freeing ones own section in pmt_cb  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								304ebed586 
								
							
								 
							
						 
						
							
							
								
								mpegts_probe: detect files with garbage at the begin.  
							
							Fixes Ticket1811
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f464b02d22 
								
							
								 
							
						 
						
							
							
								
								mpegts: fuzzy crc check for not so spec compliant files  
							
							Fixes Ticket598
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								15d35bee83 
								
							
								 
							
						 
						
							
							
								
								mpegts: Drop pointless casting of hex_dump_debug arguments  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								72eaba5e4f 
								
							
								 
							
						 
						
							
							
								
								avformat: Convert some commented-out printf/av_log instances to av_dlog  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								07584eaf4a 
								
							
								 
							
						 
						
							
							
								
								mpegts: check substreams before discarding  
							
							Allow to extract the AC3 core from TrueHD with the "copy" codec.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5710dbf88c 
								
							
								 
							
						 
						
							
							
								
								mpegts: Fix potential memory leak in mpegts_read_packet()  
							
							This leak can happen in case of some error paths.
Found-by: Tanami, Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e6153f173a 
								
							
								 
							
						 
						
							
							
								
								avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								36ef5369ee 
								
							
								 
							
						 
						
							
							
								
								Replace all CODEC_ID_* with AV_CODEC_ID_*  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0177b7d23a 
								
							
								 
							
						 
						
							
							
								
								Improve descriptiveness of a number of codec and container long names  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ae2bb52cd2 
								
							
								 
							
						 
						
							
							
								
								mpegts: remove unused/incomplete/broken seeking code  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a8656cd425 
								
							
								 
							
						 
						
							
							
								
								mpegts: Remove disabled extension matching probe.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								04064e1c20 
								
							
								 
							
						 
						
							
							
								
								mpegts: fix handling of files smaller than 8kb  
							
							Fixes Ticket1094
Analyzed-by: mjs973
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								68b9ed8391 
								
							
								 
							
						 
						
							
							
								
								mpegts: Some additional HDMV types and reg descriptors for mpegts  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								df8aa4598c 
								
							
								 
							
						 
						
							
							
								
								mpegts: Make sure we don't return uninitialized packets  
							
							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> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								269cb6751b 
								
							
								 
							
						 
						
							
							
								
								mpegts: Try seeking back even for nonseekable protocols  
							
							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> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								20234a4bd7 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Align muxer/demuxer declarations  
							
							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> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								11bc558070 
								
							
								 
							
						 
						
							
							
								
								mpegts: fix a unused function warning  
							
							note the function is used under #if
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c9024a9fd7 
								
							
								 
							
						 
						
							
							
								
								mpegts: Fix dead error checks  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								100c3fb2d1 
								
							
								 
							
						 
						
							
							
								
								mpegts: Always honor a registration descriptor if present and there is no other codec information.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d07de6d75d 
								
							
								 
							
						 
						
							
							
								
								Cosmetics: Remove superfluous newline.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f83687bc78 
								
							
								 
							
						 
						
							
							
								
								mpegts: fix stack array overread in read_sl_header()  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4a310a19de 
								
							
								 
							
						 
						
							
							
								
								mpegts: prevent get_bits64() from reading nonsense at the end.  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e732d0f608 
								
							
								 
							
						 
						
							
							
								
								mpeg-ts: fix handling of size=0 SL headers.  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1aa708988a 
								
							
								 
							
						 
						
							
							
								
								mpegts: Pad the packet buffer in handle_packet().  
							
							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  
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4df369692e 
								
							
								 
							
						 
						
							
							
								
								mpegts: Do not call read_sl_header() when no bytes remain in the buffer.  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6e9651d106 
								
							
								 
							
						 
						
							
							
								
								lavf: remove AVFormatParameters from AVFormatContext.read_header signature  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b6ffceefb5 
								
							
								 
							
						 
						
							
							
								
								mpegts: remove unused variable  
							
							Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								41bdd4adc4 
								
							
								 
							
						 
						
							
							
								
								mpegts: Suppress invalid timebase warnings on DMB streams.  
							
							timestamp_len and timestamp_res intialize to zero. 
							
						 
						14 years ago