Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						f4aec34805 
					 
					
						
						
							
							avformat/utils: pass AVFormatContext to find_decoder()  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-10-02 22:56:03 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						a63b479d11 
					 
					
						
						
							
							avformat/utils: factor find_decoder() out  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-09-28 18:11:13 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						ef7e8efc6b 
					 
					
						
						
							
							Merge commit 'ce67f442be0f6c4a8794272873852e256b5b8ee4'  
						
						... 
						
						
						
						* commit 'ce67f442be0f6c4a8794272873852e256b5b8ee4':
  lavf: Avoid setting avg_frame_rate if delta_dts is negative
Conflicts:
	libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-09-23 14:19:13 +02:00 
						 
				 
			
				
					
						
							
							
								Martin Storsjö 
							
						 
					 
					
						
						
							
						
						ce67f442be 
					 
					
						
						
							
							lavf: Avoid setting avg_frame_rate if delta_dts is negative  
						
						... 
						
						
						
						This avoids setting avg_frame_rate to invalid (negative)
values.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org 
Signed-off-by: Martin Storsjö <martin@martin.st > 
						
						
					 
					
						2013-09-22 21:02:52 +03:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						49515cb840 
					 
					
						
						
							
							avformat: remove duplicate includes  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-09-21 15:36:33 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						15672e832f 
					 
					
						
						
							
							avformat/utils: remove unused variable  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-09-20 23:19:29 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						20dfab33f5 
					 
					
						
						
							
							Merge commit '5626f994f273af80fb100d4743b963304de9e05c'  
						
						... 
						
						
						
						* commit '5626f994f273af80fb100d4743b963304de9e05c':
  avformat: Use av_reallocp() where suitable
Conflicts:
	libavformat/avidec.c
	libavformat/avienc.c
	libavformat/aviobuf.c
	libavformat/oggparsevorbis.c
	libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-09-19 11:01:26 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandra Khirnova 
							
						 
					 
					
						
						
							
						
						5626f994f2 
					 
					
						
						
							
							avformat: Use av_reallocp() where suitable  
						
						... 
						
						
						
						Signed-off-by: Diego Biurrun <diego@biurrun.de > 
						
						
					 
					
						2013-09-18 18:28:38 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						e960b3e27e 
					 
					
						
						
							
							avformat/utils: Print warning if reallocating probe buffer failed  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-09-17 13:09:24 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						3f760214b4 
					 
					
						
						
							
							Merge commit '68b467742092364f9306283f40effde2c12efe08'  
						
						... 
						
						
						
						* commit '68b467742092364f9306283f40effde2c12efe08':
  lavf: Make probe_codec return an error code
Conflicts:
	libavformat/utils.c
A failure to reallocate should not free the array as it is used
to probe the codec. And failure to reallocate if the following
probe succeeds isnt a fatal error for probe_codec(). Thus this
is only partially merged to ensure probing still is attempted
with the data available.
Merged-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-09-17 12:44:31 +02:00 
						 
				 
			
				
					
						
							
							
								Carl Eugen Hoyos 
							
						 
					 
					
						
						
							
						
						5c2be81b39 
					 
					
						
						
							
							Do not suggest to increase probesize for image2 files.  
						
						
						
						
					 
					
						2013-09-17 00:08:12 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandra Khirnova 
							
						 
					 
					
						
						
							
						
						68b4677420 
					 
					
						
						
							
							lavf: Make probe_codec return an error code  
						
						... 
						
						
						
						This allows handling errors from av_realloc properly.
Signed-off-by: Martin Storsjö <martin@martin.st > 
						
						
					 
					
						2013-09-16 22:28:23 +03:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						2a1c24a267 
					 
					
						
						
							
							avformat/utils: use av_realloc_array()  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-09-11 13:38:53 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						8c9d6ee4f2 
					 
					
						
						
							
							avformat/utils: functions that add entries should not destroy the whole list on failure  
						
						... 
						
						
						
						The caller does not expect this, and in case of adding new streams would then
not even be able to deallocate them anymore.
This reverts a hunk from "avformat: Use av_reallocp_array() where suitable"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-09-11 12:21:21 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						cbe47b1e84 
					 
					
						
						
							
							Merge commit 'f369b9356c4606cd4d713d60f7db5de119d901fa'  
						
						... 
						
						
						
						* 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 > 
						
						
					 
					
						2013-09-11 11:23:40 +02:00 
						 
				 
			
				
					
						
							
							
								Alexandra Khirnova 
							
						 
					 
					
						
						
							
						
						f369b9356c 
					 
					
						
						
							
							avformat: Use av_reallocp_array() where suitable  
						
						... 
						
						
						
						Signed-off-by: Diego Biurrun <diego@biurrun.de > 
						
						
					 
					
						2013-09-10 12:38:32 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						53fb52ac85 
					 
					
						
						
							
							Merge remote-tracking branch 'qatar/master'  
						
						... 
						
						
						
						* qatar/master:
  lavf: fix the comparison in an overflow check
Conflicts:
	libavformat/utils.c
See: a5d67bc796michaelni@gmx.at > 
						
						
					 
					
						2013-09-08 12:29:07 +02:00 
						 
				 
			
				
					
						
							
							
								Anton Khirnov 
							
						 
					 
					
						
						
							
						
						26f027fba1 
					 
					
						
						
							
							lavf: fix the comparison in an overflow check  
						
						... 
						
						
						
						CC: libav-stable@libav.org 
Signed-off-by: Luca Barbato <lu_zero@gentoo.org > 
						
						
					 
					
						2013-09-07 11:52:40 +02:00 
						 
				 
			
				
					
						
							
							
								Clément Bœsch 
							
						 
					 
					
						
						
							
						
						36cd017acd 
					 
					
						
						
							
							avformat: make avformat_close_input() more tolerant.  
						
						... 
						
						
						
						The purpose of this commit is to make error management simpler and less
error prone, just like av_free() which is safe with NULL. 
						
						
					 
					
						2013-09-04 22:06:38 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						e5c338ba7a 
					 
					
						
						
							
							avformat/utils: assert position monotonicity in ff_find_last_ts()  
						
						... 
						
						
						
						This ensures that no read timestamp functions finds packets before the search window in ff_find_last_ts()
which could cause an infinite loop
Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-09-04 01:45:13 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						a5d67bc796 
					 
					
						
						
							
							avformat/utils: Fix bitrate overflow check  
						
						... 
						
						
						
						The check added in df33a58e53michaelni@gmx.at > 
						
						
					 
					
						2013-09-03 14:49:03 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						d07d54fd56 
					 
					
						
						
							
							Merge commit 'df33a58e5311ee9a64a573889b883a80e981af7b'  
						
						... 
						
						
						
						* commit 'df33a58e5311ee9a64a573889b883a80e981af7b':
  lavf: avoid integer overflow when estimating bitrate
Merged-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-09-03 14:45:53 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						b0ba2bf8c6 
					 
					
						
						
							
							Merge commit 'fab694dd3931b1c0bc3c598c3f88b1902c14a303'  
						
						... 
						
						
						
						* commit 'fab694dd3931b1c0bc3c598c3f88b1902c14a303':
  lavf: move a variable declaration to the block where it's used
Conflicts:
	libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-09-03 14:27:48 +02:00 
						 
				 
			
				
					
						
							
							
								Anton Khirnov 
							
						 
					 
					
						
						
							
						
						df33a58e53 
					 
					
						
						
							
							lavf: avoid integer overflow when estimating bitrate  
						
						... 
						
						
						
						Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
						
						
					 
					
						2013-09-02 19:28:29 +02:00 
						 
				 
			
				
					
						
							
							
								Anton Khirnov 
							
						 
					 
					
						
						
							
						
						fab694dd39 
					 
					
						
						
							
							lavf: move a variable declaration to the block where it's used  
						
						
						
						
					 
					
						2013-09-02 19:28:19 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						0388203098 
					 
					
						
						
							
							avformat/utils: fix duration_fields calculation when need_parsing=0  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-09-01 00:46:14 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						c4810fbe4f 
					 
					
						
						
							
							avformat/utils: fix av_probe_input_buffer2() so it returns the probe score  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-08-29 01:15:15 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						e31db621bf 
					 
					
						
						
							
							avformat: export probe score  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-08-28 22:18:57 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						a9d1a7c79b 
					 
					
						
						
							
							avformat: move PROBE_BUF_M* to internal.h  
						
						... 
						
						
						
						They will be used by the mp3 probe function in the next commit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-08-26 00:54:30 +02:00 
						 
				 
			
				
					
						
							
							
								Alexis Ballier 
							
						 
					 
					
						
						
							
						
						7a48b1c492 
					 
					
						
						
							
							Remove FF_API_PKT_DUMP cruft. Not compiled since libavformat 54.  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-08-13 04:18:32 +02:00 
						 
				 
			
				
					
						
							
							
								Reimar Döffinger 
							
						 
					 
					
						
						
							
						
						d4db7c334b 
					 
					
						
						
							
							Integrate accessors.h header into internal.h  
						
						... 
						
						
						
						I have no idea why I added a separate header,
I think there is no good reason for it.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de > 
						
						
					 
					
						2013-08-10 07:56:42 +02:00 
						 
				 
			
				
					
						
							
							
								Reimar Döffinger 
							
						 
					 
					
						
						
							
						
						a48979d715 
					 
					
						
						
							
							Reduce MAKE_ACCESSORS code duplication via a new header.  
						
						... 
						
						
						
						Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de > 
						
						
					 
					
						2013-08-08 20:32:40 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						caa7a49481 
					 
					
						
						
							
							avformat/utils: fix memleak with nobuffer  
						
						... 
						
						
						
						Fixes Ticket2802
Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-08-07 01:21:43 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						20be5e0a0e 
					 
					
						
						
							
							Merge commit '7950e519bb094897f957b9a9531cc60ba46cbc91'  
						
						... 
						
						
						
						* commit '7950e519bb094897f957b9a9531cc60ba46cbc91':
  Disable deprecation warnings for cases where a replacement is available
Conflicts:
	libavcodec/avpacket.c
	libavcodec/pthread.c
	libavcodec/utils.c
	libavdevice/v4l2.c
	libavfilter/avfiltergraph.c
	libavfilter/buffersrc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-08-03 10:08:30 +02:00 
						 
				 
			
				
					
						
							
							
								Diego Biurrun 
							
						 
					 
					
						
						
							
						
						7950e519bb 
					 
					
						
						
							
							Disable deprecation warnings for cases where a replacement is available  
						
						
						
						
					 
					
						2013-08-02 19:19:02 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						f7bc03bcaf 
					 
					
						
						
							
							Merge commit 'c5b46a064d9991f2cd045c90179fccf35ecffc34'  
						
						... 
						
						
						
						* commit 'c5b46a064d9991f2cd045c90179fccf35ecffc34':
  lavf: Don't interpret just slightly broken timestamps as wraparound
Conflicts:
	libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-07-29 13:14:29 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						c5b46a064d 
					 
					
						
						
							
							lavf: Don't interpret just slightly broken timestamps as wraparound  
						
						... 
						
						
						
						This avoids breaking some slightly incorrect (dts > pts) timestamps
in sample HLS streams from Apple.
Signed-off-by: Martin Storsjö <martin@martin.st > 
						
						
					 
					
						2013-07-29 09:49:58 +03:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						37ecd67b5e 
					 
					
						
						
							
							Revert "avformat/utils: Close codec context since it is allocated by avformat_new_stream in refrence to ticket 2716"  
						
						... 
						
						
						
						This causes a race condition with VLC. Its plausible that other
applications also would have races with it and its just fixing a memleak when
the user application forgets to free the codec. It causes more
problems than it solves in its current form, thus the revert.
Better solutions are welcome
This reverts commit 0f229f9b91 
						
						
					 
					
						2013-07-21 17:57:15 +02:00 
						 
				 
			
				
					
						
							
							
								Anshul Maheshwari 
							
						 
					 
					
						
						
							
						
						0f229f9b91 
					 
					
						
						
							
							avformat/utils: Close codec context since it is allocated by avformat_new_stream in refrence to ticket 2716  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-07-21 15:52:50 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						4f1d3e0212 
					 
					
						
						
							
							Merge remote-tracking branch 'qatar/master'  
						
						... 
						
						
						
						* qatar/master:
  lavf: Make sure avg_frame_rate can be calculated without integer overflow
Merged-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-07-16 00:55:07 +02:00 
						 
				 
			
				
					
						
							
							
								Martin Storsjö 
							
						 
					 
					
						
						
							
						
						e740929a07 
					 
					
						
						
							
							lavf: Make sure avg_frame_rate can be calculated without integer overflow  
						
						... 
						
						
						
						If either of the deltas is too large for the multiplications to
succeed, don't use this for setting the avg frame rate.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Cc: libav-stable@libav.org 
Signed-off-by: Martin Storsjö <martin@martin.st > 
						
						
					 
					
						2013-07-15 21:39:24 +03:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						07206deed1 
					 
					
						
						
							
							Merge remote-tracking branch 'cehoyos/master'  
						
						... 
						
						
						
						* cehoyos/master:
  Suggest recompilation with openssl or gnutls if the https protocol is not found.
  lavf/utils.c: Avoid a null pointer dereference on oom after duration_error allocation.
Merged-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-07-10 19:58:19 +02:00 
						 
				 
			
				
					
						
							
							
								Carl Eugen Hoyos 
							
						 
					 
					
						
						
							
						
						c9eb5c9751 
					 
					
						
						
							
							lavf/utils.c: Avoid a null pointer dereference on oom after duration_error allocation.  
						
						
						
						
					 
					
						2013-07-10 16:20:40 +02:00 
						 
				 
			
				
					
						
							
							
								Piotr Bandurski 
							
						 
					 
					
						
						
							
						
						b050956334 
					 
					
						
						
							
							avformat/utils: avformat_find_stream_info set value for ret in case of oom  
						
						... 
						
						
						
						without it FFmpeg didn't display any error message when oom event occured
Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-07-10 16:07:45 +02:00 
						 
				 
			
				
					
						
							
							
								Piotr Bandurski 
							
						 
					 
					
						
						
							
						
						ccf9211e29 
					 
					
						
						
							
							avformat/utils: avformat_find_stream_info fix a crash in case of oom  
						
						... 
						
						
						
						fixes ticket #2767 
Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-07-10 03:42:06 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						5312c319be 
					 
					
						
						
							
							avformat_find_stream_info: fallback to timestamps in analyzeduration check in more cases  
						
						... 
						
						
						
						This fixes speex in rtmp
Fixes Ticket2409
the nellymoser in flv case actually needs larger analyzeduration. The code
previously just failed to calculate the duration
If this causes any problems, like premature analyze/probe end, please report!
Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-07-08 02:37:24 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						c7cfd4cce9 
					 
					
						
						
							
							avformat_find_stream_info: use fps_dts as last resort to determine duration  
						
						... 
						
						
						
						Fixes long delay with some hardware generated h264 in ts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-07-07 15:25:34 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						8ca5d277d8 
					 
					
						
						
							
							avformat/utils: factor ff_find_last_ts() out of ff_gen_search()  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-07-06 22:27:35 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						d59ec0adbb 
					 
					
						
						
							
							avformat_find_stream_info: move ret init down from flush codecs.  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-07-02 15:07:51 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
							
						
						c5ddd75354 
					 
					
						
						
							
							avformat_find_stream_info: Do not consider no streams an error in flush codecs  
						
						... 
						
						
						
						This should have no functional effect, but allows a cleaner diff when moving it
down
Signed-off-by: Michael Niedermayer <michaelni@gmx.at > 
						
						
					 
					
						2013-07-02 15:07:51 +02:00