aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '9833a406d3d743d238e4cbee08ffcaa12e067dd2'Clément Bœsch2017-01-311-8/+4
|\ | | | | | | | | | | | | * commit '9833a406d3d743d238e4cbee08ffcaa12e067dd2': examples: Properly free AVCodecContext Merged-by: Clément Bœsch <cboesch@gopro.com>
| * examples: Properly free AVCodecContextVittorio Giovara2016-07-201-8/+4
| |
* | doc/examples/decoder_targeted: move to tools/target_dec_fuzzer.cRostislav Pehlivanov2017-01-291-208/+0
| | | | | | | | | | | | | | | | Name and purpose are more appropriate there since the code isn't an ideal example. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | doc/examples/decoder_targeted: Disable error concealment after 20 framesMichael Niedermayer2017-01-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | This allows testing EC and non EC. Avoids spending most time in EC on high res samples and reduces the likelyhood of hitting timeouts Fixes: Timeout in 467/fuzz-2-ffmpeg_VIDEO_AV_CODEC_ID_H263_fuzzer Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples/http_multiclient: Fix resource leakMichael Niedermayer2016-12-261-0/+2
| | | | | | | | | | | | Fixes CID1396269 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples/decoder_targeted: Limit max pixels for fuzzingMichael Niedermayer2016-12-191-0/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples/transcode_aac: fix a typoАлександр Слободенюк2016-12-011-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples/muxing: Fix av_frame_make_writable usageSam Hocevar2016-11-231-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | doc/examples: add fuzz target for individual ffmpeg APIs for in-process ↵Thomas Garnier2016-11-041-0/+201
| | | | | | | | | | | | fuzzing with libFuzzer, AFL, and similar fuzzing engines. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples/demuxing_decoding: Drop AVFrame->pts useMichael Niedermayer2016-10-181-3/+2
| | | | | | | | | | | | | | This code is not correct for git master Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples/http_multiclient: Fix "doc/examples/http_multiclient.c:43:9: ↵Michael Niedermayer2016-10-091-1/+1
| | | | | | | | | | | | warning: passing argument 4 of av_opt_get from incompatible pointer type" Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples: build http_multiclient exampleClément Bœsch2016-09-301-0/+1
| |
* | doc/examples/gitignore: add forgotten qsvdec entryClément Bœsch2016-09-301-0/+1
| |
* | doc/examples/http_multiclient: fix mixed declarations and codeClément Bœsch2016-09-301-1/+1
| |
* | doc/examples/http_multiclient: fix compilationClément Bœsch2016-09-301-1/+1
| | | | | | | | Fixes error: no previous prototype for ‘process_client’ [-Werror=missing-prototypes]
* | examples/demuxing_decoding: convert to codecparJames Almer2016-08-171-11/+22
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit '257f00ec1ab06a2a161f535036c6512f3fc8e801'Clément Bœsch2016-06-221-0/+16
|\| | | | | | | | | | | | | * commit '257f00ec1ab06a2a161f535036c6512f3fc8e801': Split global .gitignore file into per-directory files Merged-by: Clément Bœsch <clement@stupeflix.com>
| * Split global .gitignore file into per-directory filesDiego Biurrun2016-05-131-0/+5
| |
* | Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'Clément Bœsch2016-06-212-11/+11
|\| | | | | | | | | | | | | * commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb': cosmetics: Fix spelling mistakes Merged-by: Clément Bœsch <u@pkh.me>
| * cosmetics: Fix spelling mistakesVittorio Giovara2016-05-042-11/+11
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | doc/examples/transcoding: Use the decoders pixel format if the encoder does ↵Michael Niedermayer2016-06-051-1/+4
| | | | | | | | | | | | | | | | not list which are supported This affects rawvideo and wraped_avframe, no others are affected atm Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples/muxing: Add support to pass flags to muxer as since codecpar ↵Michael Niedermayer2016-04-111-2/+4
| | | | | | | | | | | | the codec flags are not available to the muxer anymore Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'ac6d53589f3631ae08467c784fb371a15c957f01'Derek Buitenhuis2016-04-111-17/+49
|\| | | | | | | | | | | | | * commit 'ac6d53589f3631ae08467c784fb371a15c957f01': examples/transcode_aac: convert to codecpar Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * examples/transcode_aac: convert to codecparAnton Khirnov2016-02-241-17/+49
| |
* | Merge commit 'a9e1f2cc61cbd5606a087a60565e87923c39de5a'Derek Buitenhuis2016-04-111-6/+6
|\| | | | | | | | | | | | | * commit 'a9e1f2cc61cbd5606a087a60565e87923c39de5a': examples/qsvdec: convert to codecpar Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * examples/qsvdec: convert to codecparAnton Khirnov2016-02-241-6/+6
| |
* | Merge commit '9897d9f4e074cdc6c7f2409885ddefe300f18dc7'Derek Buitenhuis2016-04-111-13/+33
|\| | | | | | | | | | | | | * commit '9897d9f4e074cdc6c7f2409885ddefe300f18dc7': examples/output: convert to codecpar Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * examples/output: convert to codecparAnton Khirnov2016-02-241-17/+43
| |
* | fix some a/an typosLou Logan2016-03-281-1/+1
| | | | | | | | Signed-off-by: Lou Logan <lou@lrcd.com>
* | Replace remaining occurances of av_free_packet with av_packet_unrefHendrik Leppkes2015-10-277-9/+9
| |
* | Merge commit 'ce70f28a1732c74a9cd7fec2d56178750bd6e457'Hendrik Leppkes2015-10-272-8/+8
|\| | | | | | | | | | | | | * commit 'ce70f28a1732c74a9cd7fec2d56178750bd6e457': avpacket: Replace av_free_packet with av_packet_unref Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * avpacket: Replace av_free_packet with av_packet_unrefLuca Barbato2015-10-262-8/+8
| | | | | | | | | | | | | | `av_packet_unref` matches the AVFrame ref-counted API and can be used as a drop in replacement. Deprecate `av_free_packet`.
* | doc/examples/muxing: Fix mixed declaration and codeMichael Niedermayer2015-10-151-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit '34ed5c2e4d9b7fe5c9b3aae2da5599fabb95c02e'Hendrik Leppkes2015-10-141-30/+11
|\| | | | | | | | | | | | | | | | | | | * commit '34ed5c2e4d9b7fe5c9b3aae2da5599fabb95c02e': avformat: Do not use AVFMT_RAWPICTURE Removal from ffmpeg.c not merged because some parts of avdevice still use it Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * avformat: Do not use AVFMT_RAWPICTURELuca Barbato2015-10-131-30/+12
| | | | | | | | | | There are no formats supporting it anymore and it is deprecated. Update the documentation accordingly.
* | Merge commit '539e5ac2ecfec2e2f441222a43fb0583643ea607'Hendrik Leppkes2015-09-291-4/+4
|\| | | | | | | | | | | | | * commit '539e5ac2ecfec2e2f441222a43fb0583643ea607': examples/qsvdec: free the lavc decoder before closing MFX/VAAPI Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * examples/qsvdec: free the lavc decoder before closing MFX/VAAPIAnton Khirnov2015-09-281-4/+4
| | | | | | | | lavc expects MFX to still be in a usable state on close.
* | Merge commit '3ee462dca1038e63b8e8d5e751121736d5772a5d'Hendrik Leppkes2015-09-291-9/+12
|\| | | | | | | | | | | | | * commit '3ee462dca1038e63b8e8d5e751121736d5772a5d': examples/qsvdec: do not free the surfaces in the frame_free() callback Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * examples/qsvdec: do not free the surfaces in the frame_free() callbackAnton Khirnov2015-09-281-9/+12
| | | | | | | | | | Even though libmfx might not need them anymore, avcodec might still access the surfaces. So free them separately at the end.
* | doc/examples/demuxing_decoding: simplify api_mode to refcountClément Bœsch2015-09-061-26/+12
| | | | | | | | This finalizes the quick cleanup of a753e6c9f508fd48a0f34438bcdce87c826779b9.
* | doc/examples/demuxing_decoding: Drop old api mode, because the code fails to ↵Michael Niedermayer2015-09-051-14/+4
| | | | | | | | | | | | build otherwise Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Remove left-over FF_API_AVFILTERBUFFER cruftHendrik Leppkes2015-09-053-3/+0
| |
* | doc/examples/http_multiclient: Fix occured typoMichael Niedermayer2015-09-041-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples/filtering_video: better demo ffmpeg filters; demos chaining the ↵Harshit Mittal2015-08-281-1/+4
| | | | | | | | | | | | filters Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples: rename avio_list_dir -> avio_dir_cmdMariusz Szczepańczyk2015-08-162-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/avio_list_dir: add move and delete methodsMariusz Szczepańczyk2015-08-151-16/+76
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/example: Add http multi-client example codeStephan Holljes2015-08-012-0/+156
| | | | | | | | Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
* | Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba'Michael Niedermayer2015-07-272-4/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '059a934806d61f7af9ab3fd9f74994b838ea5eba': lavc: Consistently prefix input buffer defines Conflicts: doc/examples/decoding_encoding.c libavcodec/4xm.c libavcodec/aac_adtstoasc_bsf.c libavcodec/aacdec.c libavcodec/aacenc.c libavcodec/ac3dec.h libavcodec/asvenc.c libavcodec/avcodec.h libavcodec/avpacket.c libavcodec/dvdec.c libavcodec/ffv1enc.c libavcodec/g2meet.c libavcodec/gif.c libavcodec/h264.c libavcodec/h264_mp4toannexb_bsf.c libavcodec/huffyuvdec.c libavcodec/huffyuvenc.c libavcodec/jpeglsenc.c libavcodec/libxvid.c libavcodec/mdec.c libavcodec/motionpixels.c libavcodec/mpeg4videodec.c libavcodec/mpegvideo.c libavcodec/noise_bsf.c libavcodec/nuv.c libavcodec/nvenc.c libavcodec/options.c libavcodec/parser.c libavcodec/pngenc.c libavcodec/proresenc_kostya.c libavcodec/qsvdec.c libavcodec/svq1enc.c libavcodec/tiffenc.c libavcodec/truemotion2.c libavcodec/utils.c libavcodec/utvideoenc.c libavcodec/vc1dec.c libavcodec/wmalosslessdec.c libavformat/adxdec.c libavformat/aiffdec.c libavformat/apc.c libavformat/apetag.c libavformat/avidec.c libavformat/bink.c libavformat/cafdec.c libavformat/flvdec.c libavformat/id3v2.c libavformat/isom.c libavformat/matroskadec.c libavformat/mov.c libavformat/mpc.c libavformat/mpc8.c libavformat/mpegts.c libavformat/mvi.c libavformat/mxfdec.c libavformat/mxg.c libavformat/nutdec.c libavformat/oggdec.c libavformat/oggparsecelt.c libavformat/oggparseflac.c libavformat/oggparseopus.c libavformat/oggparsespeex.c libavformat/omadec.c libavformat/rawdec.c libavformat/riffdec.c libavformat/rl2.c libavformat/rmdec.c libavformat/rtpdec_latm.c libavformat/rtpdec_mpeg4.c libavformat/rtpdec_qdm2.c libavformat/rtpdec_svq3.c libavformat/sierravmd.c libavformat/smacker.c libavformat/smush.c libavformat/spdifenc.c libavformat/takdec.c libavformat/tta.c libavformat/utils.c libavformat/vqf.c libavformat/westwood_vqa.c libavformat/xmv.c libavformat/xwma.c libavformat/yop.c Merged-by: Michael Niedermayer <michael@niedermayer.cc>
| * lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-272-4/+4
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit 'def97856de6021965db86c25a732d78689bd6bb0'Michael Niedermayer2015-07-273-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'def97856de6021965db86c25a732d78689bd6bb0': lavc: AV-prefix all codec capabilities Conflicts: cmdutils.c ffmpeg.c ffplay.c libavcodec/8svx.c libavcodec/aacenc.c libavcodec/ac3dec.c libavcodec/adpcm.c libavcodec/alac.c libavcodec/atrac3plusdec.c libavcodec/bink.c libavcodec/dnxhddec.c libavcodec/dvdec.c libavcodec/dvenc.c libavcodec/ffv1dec.c libavcodec/ffv1enc.c libavcodec/fic.c libavcodec/flacdec.c libavcodec/flacenc.c libavcodec/flvdec.c libavcodec/fraps.c libavcodec/frwu.c libavcodec/gifdec.c libavcodec/h261dec.c libavcodec/hevc.c libavcodec/iff.c libavcodec/imc.c libavcodec/libopenjpegdec.c libavcodec/libvo-aacenc.c libavcodec/libvorbisenc.c libavcodec/libvpxdec.c libavcodec/libvpxenc.c libavcodec/libx264.c libavcodec/mjpegbdec.c libavcodec/mjpegdec.c libavcodec/mpegaudiodec_float.c libavcodec/msmpeg4dec.c libavcodec/mxpegdec.c libavcodec/nvenc_h264.c libavcodec/nvenc_hevc.c libavcodec/pngdec.c libavcodec/qpeg.c libavcodec/ra288.c libavcodec/rv10.c libavcodec/s302m.c libavcodec/sp5xdec.c libavcodec/takdec.c libavcodec/tiff.c libavcodec/tta.c libavcodec/utils.c libavcodec/v210dec.c libavcodec/vp6.c libavcodec/vp9.c libavcodec/wavpack.c libavcodec/yop.c Merged-by: Michael Niedermayer <michael@niedermayer.cc>