7182fbc471
doc/examples/decode_video: Fix format string vulnerability
...
Fixes: CID1404843
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 23edd41a0d
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-04-11 23:39:21 +02:00
e181e2909b
doc/examples/transcode_aac: replace local get_error_text with av_err2str
2017-04-01 12:45:33 +02:00
b27dd80255
doc/decode_audio: use <> to include libav* headers
...
Found-by: ubitux
2017-03-31 16:50:51 -03:00
ebe9808aaa
Merge commit '905cdcaa9d081d3d945ce555b27b43a75c3af57b'
...
* commit '905cdcaa9d081d3d945ce555b27b43a75c3af57b':
examples/decode_audio: Add missing header for av_free()
Merged-by: James Almer <jamrial@gmail.com >
2017-03-31 15:46:13 -03:00
59b8c2a4e6
doc/examples/encode_audio: Favor a sample rate close to 44khz instead of the maximum sample rate
...
This is an example, people will copy and use this. The maximum supported is quite
unreasonable as a default choice
Reviewed-by: Steven Liu <lingjiujianke@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-03-30 16:34:06 +02:00
03372d0a90
doc/examples/filtering_audio: switch to new decoding API
2017-03-30 16:20:13 +02:00
afd257b43f
doc/examples/filtering_video: switch to new decoding API
2017-03-30 16:20:07 +02:00
fdbc29ca70
Merge commit '8191f960a669819db4de33a2439ded1630b8a73e'
...
* commit '8191f960a669819db4de33a2439ded1630b8a73e':
examples/decode_video: constify the AVCodec instance
Merged-by: Clément Bœsch <u@pkh.me >
2017-03-29 14:22:32 +02:00
58f24adc05
Merge commit '5b4d7ac7ae5d821cfa6ab89f8eab4d31851ef32c'
...
* commit '5b4d7ac7ae5d821cfa6ab89f8eab4d31851ef32c':
examples/encode_video: use the AVFrame API for allocating the frame
Merged-by: Clément Bœsch <u@pkh.me >
2017-03-29 14:21:52 +02:00
944e5ce3ec
doc/examples/{de,en}code_audio: fix includes
...
Consistent with other examples.
2017-03-29 14:18:10 +02:00
4726bbb471
Merge commit 'd0a603a534a0ee4b255e5e72742428a7f7f42b83'
...
* commit 'd0a603a534a0ee4b255e5e72742428a7f7f42b83':
examples/encode_video: set the framerate
Merged-by: Clément Bœsch <u@pkh.me >
2017-03-29 14:16:33 +02:00
e9bd457465
Merge commit 'e02524025bce2c8bf8b5bffd96479785c75a70d4'
...
* commit 'e02524025bce2c8bf8b5bffd96479785c75a70d4':
examples/encode_video: constify the AVCodec instance
Merged-by: Clément Bœsch <u@pkh.me >
2017-03-29 14:15:01 +02:00
925ce244d8
Merge commit '7b1f03477f1a43d2261fbd83e50a4ad90c7f806d'
...
* commit '7b1f03477f1a43d2261fbd83e50a4ad90c7f806d':
examples/avcodec: split the remaining two examples into separate files
Merged-by: Clément Bœsch <u@pkh.me >
2017-03-29 14:09:09 +02:00
dcdd52101f
Merge commit '90265814f993098d79b0a0f40745ecdb403fbf56'
...
* commit '90265814f993098d79b0a0f40745ecdb403fbf56':
examples/decode_audio: constify the AVCodec instance
Merged-by: Clément Bœsch <u@pkh.me >
2017-03-29 13:45:51 +02:00
9bed10afb8
doc/examples/encode_audio: add missing return
2017-03-29 13:45:09 +02:00
878070cc56
Merge commit 'f5df897c4b61985e3afc89ba1290649712ff438e'
...
* commit 'f5df897c4b61985e3afc89ba1290649712ff438e':
examples/avcodec: split audio decoding into a separate example
Merged-by: Clément Bœsch <u@pkh.me >
2017-03-29 13:43:47 +02:00
780cc080d8
Merge commit 'f76698e759a08e8d3b629c06edb0439f474e7fee'
...
* commit 'f76698e759a08e8d3b629c06edb0439f474e7fee':
examples/encode_audio: use the AVFrame API for allocating the data
Merged-by: Clément Bœsch <u@pkh.me >
2017-03-29 13:31:44 +02:00
f38e7566c6
Merge commit 'c00a11ab383ff276a2ab2fdba577945e48d465be'
...
* commit 'c00a11ab383ff276a2ab2fdba577945e48d465be':
examples/encode_audio: constify AVCodec instances
Merged-by: Clément Bœsch <u@pkh.me >
2017-03-29 13:30:16 +02:00
b785af4868
Merge commit '40aaa8dadfd1c69ff4460d04750e1403b5535a6d'
...
* commit '40aaa8dadfd1c69ff4460d04750e1403b5535a6d':
examples/avcodec: split audio encoding into a separate example
Merged-by: Clément Bœsch <u@pkh.me >
2017-03-29 13:29:22 +02:00
3b80f73b18
doc/examples/transcoding: convert to codecpar
...
Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2017-03-28 12:27:04 -03:00
64b5539985
doc/examples/extract_mvs: switch to codecpar
2017-03-28 17:46:29 +02:00
4a946aca7c
doc/examples/remuxing: switch to codecpar
...
Also limits remuxing to audio, video and subtitle streams.
2017-03-28 17:46:23 +02:00
7e3e0f87e6
doc/examples/muxing: re-indent block
2017-03-28 12:41:46 +02:00
c3706bc255
doc/examples/filtering_*: switch to codecpar
2017-03-28 11:40:57 +02:00
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
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
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
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
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
3aa1ff30f3
doc/examples/transcode_aac: fix a typo
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-01 12:53:45 +01:00
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
905cdcaa9d
examples/decode_audio: Add missing header for av_free()
2016-11-10 10:33:19 +01:00
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
636515c324
examples/decode_video: remove a stray unrelated comment
2016-11-02 10:20:41 +01:00
8191f960a6
examples/decode_video: constify the AVCodec instance
2016-11-02 10:20:25 +01:00
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
d0a603a534
examples/encode_video: set the framerate
2016-11-02 10:19:37 +01:00
e02524025b
examples/encode_video: constify the AVCodec instance
2016-11-02 10:18:34 +01:00
7b1f03477f
examples/avcodec: split the remaining two examples into separate files
2016-11-02 10:16:04 +01:00
90265814f9
examples/decode_audio: constify the AVCodec instance
2016-11-02 10:13:37 +01:00
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
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
c00a11ab38
examples/encode_audio: constify AVCodec instances
2016-11-02 10:11:48 +01:00
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
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
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
1a9b4bc4c7
doc/examples: build http_multiclient example
2016-09-30 19:35:52 +02:00
1e647d200f
doc/examples/gitignore: add forgotten qsvdec entry
2016-09-30 19:35:52 +02:00
f2579f7ee2
doc/examples/http_multiclient: fix mixed declarations and code
2016-09-30 19:35:52 +02:00
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