- 17 Apr, 2023 30 commits
-
-
Anton Khirnov authored
It is no longer used outside of ffmpeg_enc.c
-
Anton Khirnov authored
It is no longer used outside of ffmpeg_mux*
-
Anton Khirnov authored
It is no longer used outside of ffmpeg_mux*
-
Anton Khirnov authored
It is no longer used outside of ffmpeg_mux*
-
Anton Khirnov authored
It is no longer used outside of ffmpeg_mux*
-
Anton Khirnov authored
That field was added to store timestamp conversion state for audio decoding code. Later it started being used by streamcopy as well, but that use is wrong because, for a given input stream, both decoding and an arbitrary number of streamcopies may be performed simultaneously. They would then all overwrite the same state variable. Store this state in MuxStream instead. This is the last use of InputStream in of_streamcopy(), so the ist parameter can now be removed.
-
Anton Khirnov authored
They should always be the same as the input stream parameters, but this reduces the need to access InputStream in muxing code.
-
Anton Khirnov authored
do_streamcopy() is muxing code, so this is a more appropriate place for this. The last uses of InputStream in it will be removed in following commits.
-
Anton Khirnov authored
It stores codec parameters of the stream submitted to the muxer, which may be different from the codec parameters in AVStream due to bitstream filtering. This avoids the confusing back and forth synchronisation between the encoder, bitstream filters, and the muxer, now information flows only in one direction. It also reduces the need for non-muxing code to access AVStream.
-
Anton Khirnov authored
Reduces access to a deeply nested muxer property OutputStream.st->codecpar->codec_type for this fundamental and immutable stream property. Besides making the code shorter, this will allow making the AVStream (OutputStream.st) private to the muxer in the future.
-
Anton Khirnov authored
There is no reason to postpone it until transcode_init() anymore, it can be done right at the end of of_open().
-
Anton Khirnov authored
Will allow initializing subtitle encoding earlier.
-
Anton Khirnov authored
It does nothing beyond exit_program().
-
Anton Khirnov authored
-
Anton Khirnov authored
All decoding code will be moved to this file in the future.
-
Anton Khirnov authored
Set InputStream.decoding_needed/discard/etc. only from ist_{filter,output},add() functions. Reduces the knowledge of InputStream internals in muxing/filtering code.
-
Anton Khirnov authored
This way filtering code does not directly mess with InputStream internals. Will become more useful in following commits.
-
Anton Khirnov authored
Makes it easier to see where the input stream is modified from muxer code.
-
Anton Khirnov authored
init_input_stream() can print log messages directly, there is no need to ship them to the caller. Also, log errors to the InputStream and avoid duplicate information in the message.
-
Anton Khirnov authored
reap_filters() no longer needs to access the encoding context.
-
Anton Khirnov authored
Changing AVCodecContext.sample_aspect_ratio after the encoder was opened is by itself questionable, but if anywhere it belongs in encoding rather than filtering code.
-
Anton Khirnov authored
-
Anton Khirnov authored
Everything in it can be done immediately when creating the output stream, there is no reason to postpone it.
-
Anton Khirnov authored
Creating a new output stream of a given type is currently done by calling new_<type>_stream(), which all start by calling new_output_stream() to allocate the stream and do common init, followed by type-specific init. Reverse this structure - the caller now calls the common function ost_add() with the type as a parameter, which then calls the type-specific function internally. This will allow adding common code that runs after type-specific code in future commits.
-
Anton Khirnov authored
Reduces the diff in the following commit. Temporarily add a forward declaration for new_output_stream(), it will be removed in the next commit.
-
Anton Khirnov authored
Fixes #10319 and #10309.
-
jianfeng.zheng authored
see https://github.com/intel/libva/pull/664Signed-off-by: jianfeng.zheng <jianfeng.zheng@mthreads.com>
-
jianfeng.zheng authored
see https://github.com/intel/libva/pull/664Signed-off-by: jianfeng.zheng <jianfeng.zheng@mthreads.com>
-
Jiasheng Jiang authored
Add the check for the return value of the av_malloc in order to avoid NULL pointer deference. Fixes: e4be3485 ("MS Video 1 encoder") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
-
Jiasheng Jiang authored
Add the check for the return value of the av_malloc in order to avoid NULL pointer deference. Fixes: b86ab381 ("Add weighted motion compensation for RV40 B-frames") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
-
- 14 Apr, 2023 10 commits
-
-
Michael Niedermayer authored
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Michael Niedermayer authored
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Michael Niedermayer authored
Fixes: out of array write on x86-32 Fixes: 57825/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG2VIDEO_fuzzer-6094366187061248 Fixes: 57829/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG2VIDEO_fuzzer-4526419991724032 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg This reverts commit f7abe92b.
-
Michael Niedermayer authored
Fixes: NULL pointer dereference Fixes: 57819/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ESCAPE124_fuzzer-5077280228769792 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpegSigned-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Michael Niedermayer authored
Fixes: signed integer overflow: -631553 * 32768 cannot be represented in type 'int' Fixes: 57814/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RKA_fuzzer-4614661233573888 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpegSigned-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Michael Niedermayer authored
Fixes: Writing arbitrarily over the array end Fixes: 57812/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-4536557859373056 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpegSigned-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Michael Niedermayer authored
Fixes: left shift of negative value -1 Fixes: 57554/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFVHUFF_fuzzer-4853603839115264 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpegSigned-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
James Almer authored
Fixes tickets #10306 and #10318. Signed-off-by: James Almer <jamrial@gmail.com>
-
James Almer authored
Fixes ticket #10317. Signed-off-by: James Almer <jamrial@gmail.com>
-
James Almer authored
Don't return success if the string could not be converted. Signed-off-by: James Almer <jamrial@gmail.com>
-