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  
							
							
								
							
							
						 
						13 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  
				
					
						
							
							
								 
						
							
							
							
								
							
								d9b89b23df 
								
							
								 
							
						 
						
							
							
								
								mpegts: Fix typo in handling sections in the PMT.  
							
							This was an error rebasing 4682a1dc3a 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								65a25adc97 
								
							
								 
							
						 
						
							
							
								
								mpegts: replace some magic numbers with the existing define  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cd3716b9aa 
								
							
								 
							
						 
						
							
							
								
								Replace all uses of av_close_input_file() with avformat_close_input().  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3a7f7678eb 
								
							
								 
							
						 
						
							
							
								
								lavf: deprecate av_close_input_stream().  
							
							And remove all its uses. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								da9cea77e3 
								
							
								 
							
						 
						
							
							
								
								Fix a bunch of common typos.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c3f9ebf743 
								
							
								 
							
						 
						
							
							
								
								lavf: make av_set_pts_info private.  
							
							It's supposed to be called only from (de)muxers. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7ea3963817 
								
							
								 
							
						 
						
							
							
								
								mpegts: Completely ignore H222 spec and consider reserved adaption  
							
							fields to be perfectly fine mpeg TS.
Fixes Ticket580
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								63b796b0dd 
								
							
								 
							
						 
						
							
							
								
								Rename remaining url_ftell to avio_tell.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3110ad8329 
								
							
								 
							
						 
						
							
							
								
								mpegts: set stream id on just created stream, not an unrelated variable  
							
							Bug introduced in 84ad31ff18 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6aaf6db253 
								
							
								 
							
						 
						
							
							
								
								Support decoding transport streams from Sony NXCAM.  
							
							Fixes ticket #617 . 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								124e28847b 
								
							
								 
							
						 
						
							
							
								
								Remove some stray unnecessary ffmpeg references.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eac778deb3 
								
							
								 
							
						 
						
							
							
								
								Some minor spelling fixes.  
							
							Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ca65932bbf 
								
							
								 
							
						 
						
							
							
								
								mpegts: MP4 SL support  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c530267024 
								
							
								 
							
						 
						
							
							
								
								mpegts: MP4 OD support  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4682a1dc3a 
								
							
								 
							
						 
						
							
							
								
								mpegts: Add support for Sections in PMT  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fec2836483 
								
							
								 
							
						 
						
							
							
								
								mpegts: Replace the MP4 descriptor parser with a recursive parser.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c3bc6096f2 
								
							
								 
							
						 
						
							
							
								
								mpegts: Add support for multiple mp4 descriptors  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								476d04a56a 
								
							
								 
							
						 
						
							
							
								
								mpegts: Parse mpeg2 SL descriptors.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a2faa95151 
								
							
								 
							
						 
						
							
							
								
								lavf: make some seeking functions private  
							
							Specifically av_update_cur_dts(), av_seek_frame_binary() and
av_gen_search().
They are not supposed to be called outside lavf. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c643ba8128 
								
							
								 
							
						 
						
							
							
								
								mpegts: Fix detection of some raw AAC  
							
							Fixes Ticket577
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d1ee98c94b 
								
							
								 
							
						 
						
							
							
								
								mpegts: add BDMV secondary audio stream types  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								463c8d8621 
								
							
								 
							
						 
						
							
							
								
								mpegts: fix null-pointer dereference  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a0a4b13322 
								
							
								 
							
						 
						
							
							
								
								mpegts: remove read_seek()  
							
							Its redundant
Found-by: nevcairiel
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								db1347f66e 
								
							
								 
							
						 
						
							
							
								
								mpegts: cache information to speed up seeking.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7846280d1d 
								
							
								 
							
						 
						
							
							
								
								mpegts: assert position in dts reading code.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								de9862a95e 
								
							
								 
							
						 
						
							
							
								
								mpegts: add and use mpegts_get_dts()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								04ac0d7994 
								
							
								 
							
						 
						
							
							
								
								mpegts: fix type of argument of mpegts_resync()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bc38e83793 
								
							
								 
							
						 
						
							
							
								
								mpegts: do not return from ff_mpegts_parse_packet() after having seen the first PMT  
							
							It prevents leaving the AVPacket uninitialized.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								49ec0c818d 
								
							
								 
							
						 
						
							
							
								
								mpegts: fix return value when enough ts packets have been parsed or when the first PMT has been seen.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								84ad31ff18 
								
							
								 
							
						 
						
							
							
								
								lavf: replace av_new_stream->avformat_new_stream part II.  
							
							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. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3b3bbdd3e6 
								
							
								 
							
						 
						
							
							
								
								lavf,lavd: replace av_new_stream->avformat_new_stream part I.  
							
							Trivial replacements with sed are done in this commit:
sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/' 
							
						 
						14 years ago