Diego Biurrun
ab566cc96b
build: Separate logic for building examples from that for building avtools
2017-02-21 16:10:51 +01:00
Diego Biurrun
acb0dea27e
build: Split logic for building examples off into a separate Makefile
2017-02-21 16:10:51 +01:00
Clément Bœsch
126e96533f
Merge commit '9833a406d3d743d238e4cbee08ffcaa12e067dd2'
...
* commit '9833a406d3d743d238e4cbee08ffcaa12e067dd2':
examples: Properly free AVCodecContext
Merged-by: Clément Bœsch <cboesch@gopro.com>
2017-01-31 17:35:41 +01:00
Rostislav Pehlivanov
e05d2dd86a
doc/examples/decoder_targeted: move to tools/target_dec_fuzzer.c
...
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>
2017-01-29 16:14:18 +00:00
Michael Niedermayer
bbd4d92304
doc/examples/decoder_targeted: Disable error concealment after 20 frames
...
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>
2017-01-29 16:09:55 +01:00
Michael Niedermayer
89d4d7d759
doc/examples/http_multiclient: Fix resource leak
...
Fixes CID1396269
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-26 18:29:00 +01:00
Michael Niedermayer
99af260d0b
doc/examples/decoder_targeted: Limit max pixels for fuzzing
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-19 19:59:06 +01:00
Aleksandr Slobodeniuk
a91f1023bc
examples: fix a typo in an error message
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2016-12-02 11:59:08 -05:00
Александр Слободенюк
3aa1ff30f3
doc/examples/transcode_aac: fix a typo
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-01 12:53:45 +01:00
Anton Khirnov
c7ab0eb305
examples/decode_video: allocate the packet dynamically
...
AVPackets on stack are discouraged.
2016-11-23 13:11:17 +01:00
Anton Khirnov
728ea23cce
examples/decode_video: switch to the new decoding API
2016-11-23 13:10:54 +01:00
Anton Khirnov
f78d360bba
examples/decode_video: use a parser for splitting the input
...
Do not rely on the decoder handling this, as it's not guaranteed to
work.
2016-11-23 13:10:28 +01:00
Anton Khirnov
59ab9e8ba1
examples/encode_video: allocate the packet dynamically
...
AVPackets on stack are discouraged.
2016-11-23 13:10:22 +01:00
Anton Khirnov
5f102a9559
examples/encode_video: switch to the new encoding API
2016-11-23 13:10:16 +01:00
Anton Khirnov
fee0f1de2c
examples/decode_audio: flush the decoder
2016-11-23 13:10:10 +01:00
Anton Khirnov
9a38184a14
examples/decode_audio: allocate the packet dynamically
...
AVPackets on stack are discouraged now.
2016-11-23 13:10:05 +01:00
Anton Khirnov
45a1ce2ff7
examples/decode_audio: handle planar audio now produced by the MP2 decoder
2016-11-23 13:10:00 +01:00
Anton Khirnov
3d66717f7c
examples/decode_audio: use the new audio decoding API
2016-11-23 13:09:55 +01:00
Anton Khirnov
0946c754d9
examples/decode_audio: use a parser for splitting the input
...
Do not rely on the decoder handling this, as it's not guaranteed to
work.
2016-11-23 13:09:41 +01:00
Anton Khirnov
f27e262dbd
examples/encode_audio: switch to the new audio encoding API
2016-11-23 13:08:50 +01:00
Anton Khirnov
44c9f374f1
examples/qsvdec: convert to the new decoding API
2016-11-23 13:08:43 +01:00
Anton Khirnov
1dd2b6c91c
examples/qsvdec: switch to the hwcontext API
...
The code now does not depend on VA and will work on windows as well.
2016-11-23 13:08:33 +01:00
Sam Hocevar
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>
2016-11-23 03:28:04 +01:00
Diego Biurrun
bb265b764a
examples/transcode_aac: Drop pointless return value const qualifier
...
doc/examples/transcode_aac.c:52:20: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
2016-11-17 16:53:47 +01:00
Diego Biurrun
bfe92dfe60
Ignore all generated example binaries
2016-11-17 10:35:27 +01:00
Diego Biurrun
905cdcaa9d
examples/decode_audio: Add missing header for av_free()
2016-11-10 10:33:19 +01:00
Thomas Garnier
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>
2016-11-04 22:42:20 +01:00
Anton Khirnov
636515c324
examples/decode_video: remove a stray unrelated comment
2016-11-02 10:20:41 +01:00
Anton Khirnov
8191f960a6
examples/decode_video: constify the AVCodec instance
2016-11-02 10:20:25 +01:00
Anton Khirnov
5b4d7ac7ae
examples/encode_video: use the AVFrame API for allocating the frame
...
It is more efficient and so preferred over allocating the buffers
manually.
2016-11-02 10:20:01 +01:00
Anton Khirnov
d0a603a534
examples/encode_video: set the framerate
2016-11-02 10:19:37 +01:00
Anton Khirnov
e02524025b
examples/encode_video: constify the AVCodec instance
2016-11-02 10:18:34 +01:00
Anton Khirnov
7b1f03477f
examples/avcodec: split the remaining two examples into separate files
2016-11-02 10:16:04 +01:00
Anton Khirnov
90265814f9
examples/decode_audio: constify the AVCodec instance
2016-11-02 10:13:37 +01:00
Anton Khirnov
f5df897c4b
examples/avcodec: split audio decoding into a separate example
...
The four examples (audio/video encoding/decoding) are completely
independent so it makes little sense to have them all in one file.
2016-11-02 10:13:27 +01:00
Anton Khirnov
f76698e759
examples/encode_audio: use the AVFrame API for allocating the data
...
It is simpler and more efficient.
2016-11-02 10:12:39 +01:00
Anton Khirnov
c00a11ab38
examples/encode_audio: constify AVCodec instances
2016-11-02 10:11:48 +01:00
Anton Khirnov
40aaa8dadf
examples/avcodec: split audio encoding into a separate example
...
The four examples (audio/video encoding/decoding) are completely
independent so it makes little sense to have them all in one file.
2016-11-02 10:11:46 +01:00
Michael Niedermayer
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>
2016-10-18 15:15:12 +02:00
Michael Niedermayer
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>
2016-10-09 00:32:39 +02:00
Clément Bœsch
1a9b4bc4c7
doc/examples: build http_multiclient example
2016-09-30 19:35:52 +02:00
Clément Bœsch
1e647d200f
doc/examples/gitignore: add forgotten qsvdec entry
2016-09-30 19:35:52 +02:00
Clément Bœsch
f2579f7ee2
doc/examples/http_multiclient: fix mixed declarations and code
2016-09-30 19:35:52 +02:00
Clément Bœsch
fb5e58cd77
doc/examples/http_multiclient: fix compilation
...
Fixes error: no previous prototype for ‘process_client’ [-Werror=missing-prototypes]
2016-09-30 19:35:52 +02:00
Anton Khirnov
67d28f4a0f
examples/output: switch to the new encoding API
2016-09-28 10:01:52 +02:00
James Almer
bba6a03b28
examples/demuxing_decoding: convert to codecpar
...
Signed-off-by: James Almer <jamrial@gmail.com>
2016-08-17 19:17:04 -03:00
Vittorio Giovara
9833a406d3
examples: Properly free AVCodecContext
2016-07-20 17:13:53 +02:00
Clément Bœsch
5558ff3a9f
Merge commit '257f00ec1ab06a2a161f535036c6512f3fc8e801'
...
* commit '257f00ec1ab06a2a161f535036c6512f3fc8e801':
Split global .gitignore file into per-directory files
Merged-by: Clément Bœsch <clement@stupeflix.com>
2016-06-22 11:28:51 +02:00
Clément Bœsch
8ef57a0d61
Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'
...
* commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb':
cosmetics: Fix spelling mistakes
Merged-by: Clément Bœsch <u@pkh.me>
2016-06-21 21:55:34 +02:00
Michael Niedermayer
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>
2016-06-05 17:10:15 +02:00