3115550abe 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: Fix av_frame_make_writable usage  
							
							This patch moves the av_frame_make_writable() call from fill_yuv_image
to get_video_frame so that its argument can be the actual frame that
will be sent to the encoder.
This fixes data corruption issues in codecs that keep references on
one or several previous frames.
Signed-off-by: Sam Hocevar <sam@hocevar.net>
Reviewed-by: wm4
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c06d923410 
								
							
								 
							
						 
						
							
							
								
								doc/examples: add fuzz target for individual ffmpeg APIs for in-process fuzzing with libFuzzer, AFL, and similar fuzzing engines.  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2bd9956454 
								
							
								 
							
						 
						
							
							
								
								doc/examples/demuxing_decoding: Drop AVFrame->pts use  
							
							This code is not correct for git master
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7ba7b96dd3 
								
							
								 
							
						 
						
							
							
								
								doc/examples/http_multiclient: Fix "doc/examples/http_multiclient.c:43:9: warning: passing argument 4 of av_opt_get from incompatible pointer type"  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1a9b4bc4c7 
								
							
								 
							
						 
						
							
							
								
								doc/examples: build http_multiclient example  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1e647d200f 
								
							
								 
							
						 
						
							
							
								
								doc/examples/gitignore: add forgotten qsvdec entry  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f2579f7ee2 
								
							
								 
							
						 
						
							
							
								
								doc/examples/http_multiclient: fix mixed declarations and code  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fb5e58cd77 
								
							
								 
							
						 
						
							
							
								
								doc/examples/http_multiclient: fix compilation  
							
							Fixes error: no previous prototype for ‘process_client’ [-Werror=missing-prototypes] 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bba6a03b28 
								
							
								 
							
						 
						
							
							
								
								examples/demuxing_decoding: convert to codecpar  
							
							Signed-off-by: James Almer <jamrial@gmail.com> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3bc060f366 
								
							
								 
							
						 
						
							
							
								
								doc/examples/transcoding: Use the decoders pixel format if the encoder does not list which are supported  
							
							This affects rawvideo and wraped_avframe, no others are affected atm
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								257f00ec1a 
								
							
								 
							
						 
						
							
							
								
								Split global .gitignore file into per-directory files  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								41ed7ab45f 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Fix spelling mistakes  
							
							Signed-off-by: Diego Biurrun <diego@biurrun.de> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0c79c96cf2 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: Add support to pass flags to muxer as since codecpar the codec flags are not available to the muxer anymore  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								06eef96b69 
								
							
								 
							
						 
						
							
							
								
								fix some a/an typos  
							
							Signed-off-by: Lou Logan <lou@lrcd.com> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ac6d53589f 
								
							
								 
							
						 
						
							
							
								
								examples/transcode_aac: convert to codecpar  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a9e1f2cc61 
								
							
								 
							
						 
						
							
							
								
								examples/qsvdec: convert to codecpar  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9897d9f4e0 
								
							
								 
							
						 
						
							
							
								
								examples/output: convert to codecpar  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c2f861ca42 
								
							
								 
							
						 
						
							
							
								
								Replace remaining occurances of av_free_packet with av_packet_unref  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ce70f28a17 
								
							
								 
							
						 
						
							
							
								
								avpacket: Replace av_free_packet with av_packet_unref  
							
							`av_packet_unref` matches the AVFrame ref-counted API and can be used as
a drop in replacement.
Deprecate `av_free_packet`. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								83fc0b9d48 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: Fix mixed declaration and code  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								34ed5c2e4d 
								
							
								 
							
						 
						
							
							
								
								avformat: Do not use AVFMT_RAWPICTURE  
							
							There are no formats supporting it anymore and it is deprecated.
Update the documentation accordingly. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								539e5ac2ec 
								
							
								 
							
						 
						
							
							
								
								examples/qsvdec: free the lavc decoder before closing MFX/VAAPI  
							
							lavc expects MFX to still be in a usable state on close. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3ee462dca1 
								
							
								 
							
						 
						
							
							
								
								examples/qsvdec: do not free the surfaces in the frame_free() callback  
							
							Even though libmfx might not need them anymore, avcodec might still
access the surfaces. So free them separately at the end. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d9464e9c14 
								
							
								 
							
						 
						
							
							
								
								doc/examples/demuxing_decoding: simplify api_mode to refcount  
							
							This finalizes the quick cleanup of a753e6c9f5 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a753e6c9f5 
								
							
								 
							
						 
						
							
							
								
								doc/examples/demuxing_decoding: Drop old api mode, because the code fails to build otherwise  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								144fb06806 
								
							
								 
							
						 
						
							
							
								
								Remove left-over FF_API_AVFILTERBUFFER cruft  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e9c58033e8 
								
							
								 
							
						 
						
							
							
								
								doc/examples/http_multiclient: Fix occured typo  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								53bf32fa42 
								
							
								 
							
						 
						
							
							
								
								doc/examples/filtering_video: better demo ffmpeg filters; demos chaining the filters  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								767d780ec0 
								
							
								 
							
						 
						
							
							
								
								doc/examples: rename avio_list_dir -> avio_dir_cmd  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c84d208c27 
								
							
								 
							
						 
						
							
							
								
								examples/avio_list_dir: add move and delete methods  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								25410c524d 
								
							
								 
							
						 
						
							
							
								
								doc/example: Add http multi-client example code  
							
							Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								059a934806 
								
							
								 
							
						 
						
							
							
								
								lavc: Consistently prefix input buffer defines  
							
							Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								def97856de 
								
							
								 
							
						 
						
							
							
								
								lavc: AV-prefix all codec capabilities  
							
							Express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7c6eb0a1b7 
								
							
								 
							
						 
						
							
							
								
								lavc: AV-prefix all codec flags  
							
							Convert doxygen to multiline and express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dd6c8575db 
								
							
								 
							
						 
						
							
							
								
								examples/demuxing_decoding: use properties from frame instead of video_dec_ctx  
							
							This is more robust.
And only check if there is actually a frame returned.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ed0b1db640 
								
							
								 
							
						 
						
							
							
								
								doc: fix spelling errors  
							
							Neccessary -> Necessary
formated   -> formatted
thee       -> the
eventhough -> even though
seperately -> separately
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b8ba2d3915 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: Use the AVFrame width/height for processing images after decoding  
							
							This is what FFmpeg / FFplay do and it is more robust
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f79cd98caf 
								
							
								 
							
						 
						
							
							
								
								examples/avio_list_dir: init/deinit network  
							
							Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f10aa0e125 
								
							
								 
							
						 
						
							
							
								
								doc/examples: Handle new types in avio_list_dir  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								56b7aa2138 
								
							
								 
							
						 
						
							
							
								
								doc/examples: add directory listing example  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								990e4a6639 
								
							
								 
							
						 
						
							
							
								
								Add a QSV decoding example.  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								078be09dd7 
								
							
								 
							
						 
						
							
							
								
								examples/demuxing_decoding: abort decoding when width, height or pix_fmt change  
							
							This is necessary, because avcodec_decode_video2 can change
width, height and/or pixel format of the AVCodecContext. Since
video_dst_data and video_dst_linesize are not updated by calling
av_image_alloc again, av_image_copy[_plane] asserts, because the
destination buffer is too small.
In this case, creating a useable rawvideo is not possible anyway, since
it has fixed width/height/pix_fmt.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2a3b7a55b5 
								
							
								 
							
						 
						
							
							
								
								examples/demuxing_decoding: set stream_idx in open_codec_context only if no error occured  
							
							Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d43c1ec684 
								
							
								 
							
						 
						
							
							
								
								examples/filtering: extend comments about setting the filter graph endpoints  
							
							That part is a constant source of confusions for readers, this should
help clarify the apparently inverted logic. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3a70c0c95f 
								
							
								 
							
						 
						
							
							
								
								examples/transcode_aac: generate proper PTS and set the muxer timebase  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c9b19ac892 
								
							
								 
							
						 
						
							
							
								
								examples/transcode_aac: fix a typo  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								749a89d1b8 
								
							
								 
							
						 
						
							
							
								
								examples/transcode_aac: properly select the output sample format  
							
							Makes the example work with all the supported AAC encoders.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f97f2a3527 
								
							
								 
							
						 
						
							
							
								
								doc/examples: fix lib math dep for decoding_encoding  
							
							It uses at least sin().
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a85f033149 
								
							
								 
							
						 
						
							
							
								
								doc/examples/transcoding: Use avio_closep() in examples as it avoids leaving stale pointers  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a63c17cec7 
								
							
								 
							
						 
						
							
							
								
								idoc/examples/remuxing: Use avio_closep() in examples as it avoids leaving stale pointers  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago