This commit is the AVHWAccel analogue of commit
20f972701806be20a77f808db332d9489343bb78: It moves the private fields
of AVHWAccel to a new struct FFHWAccel extending AVHWAccel
in an internal header (namely hwaccel_internal.h).
Signed-off-by: Andreas Rheinhardt
---
I wonder whether I should make
All usages of ff_hwaccel_frame_priv_alloc() have the same pattern:
Check for whether a hwaccel is in use; check whether it needs
private frame-specific data; allocate the AVBuffer and set
it.
This commit modifies ff_hwaccel_frame_priv_alloc() to perform
this task on its own.
(It also seems that t
libavcodec/hwconfig.h currently contains HWACCEL_CAP_* flags
as well as the definition of AVCodecHWConfigInternal and some
macros to create them.
The users of these two are nearly disjoint: The flags are used
by files providing AVHWAccels whereas AVCodecHWConfigInternal
is used by files providing
Having a decode_slice callback is mandatory for HWAccels;
the only exception to this (and the reason why these checks
were added) was XvMC, but it is no more since commit
be95df12bb06b183c8d2aea3b0831fdf05466cf3.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/error_resilience.c | 4 ++--
libav
The discrepancy between the actual definition and the declarations
in hwaccels.h is actually UB.
Signed-off-by: Andreas Rheinhardt
---
Resending patches 1-3 because the last patch depends upon it.
libavcodec/nvdec_mjpeg.c | 2 +-
libavcodec/nvdec_vp8.c | 2 +-
2 files changed, 2 insertions(+)
On date Friday 2023-07-28 09:44:37 +0200, Stefano Sabatini wrote:
> On date Wednesday 2023-07-26 10:52:57 +, Carotti, Elias wrote:
> > On Mon, 2023-07-24 at 01:27 +0200, Stefano Sabatini wrote:
> > > CAUTION: This email originated from outside of the organization. Do
> > > not click links or op
On date Saturday 2023-07-15 12:46:10 +0200, Anton Khirnov wrote:
> Inline the relevant part of ffprobe_cleanup() into main() and drop the
> rest.
> ---
> fftools/ffprobe.c | 22 --
> 1 file changed, 8 insertions(+), 14 deletions(-)
>
> diff --git a/fftools/ffprobe.c b/fftools/
Hendrik Leppkes:
> On Tue, Aug 1, 2023 at 5:05 PM Andreas Rheinhardt
> wrote:
>>
>> Signed-off-by: Andreas Rheinhardt
>> ---
>> libavfilter/avfilter.c | 44 +++---
>> libavfilter/internal.h | 8
>> 2 files changed, 24 insertions(+), 28 deletions(-)
>
On date Saturday 2023-07-15 12:46:09 +0200, Anton Khirnov wrote:
> There is no reason to keep them separate.
>
> Also, replace exit_program() with returning an error code.
> ---
> fftools/ffprobe.c | 8 ++--
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/fftools/ffprobe.c
Andreas Rheinhardt:
> The code currently presumes that a return value of AVERROR(ENOMEM)
> implies that ac3hdr could not be allocated, so it need not be freed.
> Yet any avpriv_ac3_parse_header() might allocate more than the
> AC3HeaderInfo internally (it doesn't currently), so simply free
> it unc
On date Monday 2023-07-31 13:08:37 +0200, Andreas Rheinhardt wrote:
> Fixes Coverity issue #1524491.
> Regression since e6126abc6997058ca49ee596b70611bbe367163e.
>
> Signed-off-by: Andreas Rheinhardt
> ---
> fftools/ffprobe.c | 6 --
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> dif
Marton Balint 于2023年7月30日周日 01:49写道:
>
> In metadata fourcc is carried in the AMF number, not as binary.
>
> Partially based on a patch by Steven Liu.
>
> Signed-off-by: Marton Balint
> ---
> libavformat/flvdec.c | 76 +---
> 1 file changed, 30 insertions(
On Sun, Jul 30, 2023 at 3:04 PM Nicolas George wrote:
> Kieran Kunhya (12023-07-28):
> > FFmpeg doesn't implement TCP in userspace, it doesn't implement the
> > WiFi protocol etc etc. Different layers are delegated to different
> > programs.
>
> Hi. You seem to be discussing this in more good fai
This also fixes assertion failures
Fixes: shift exponent 95 is too large for 64-bit type 'unsigned long long'
Fixes:
58299/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5828618092937216
Found-by: continuous fuzzing process
https://github.com/google/oss-fuzz/tree/master/proje
Code should make more sense now
Fixes: out of array access
Fixes:
58299/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-6627570448465920
Found-by: continuous fuzzing process
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer
---
Fixes: freeing of uninitialized pointers
Fixes: part of 58299
Found-by: continuous fuzzing process
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer
---
libavcodec/jpeg2000htdec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --g
On Tue, Aug 1, 2023 at 5:05 PM Andreas Rheinhardt
wrote:
>
> Signed-off-by: Andreas Rheinhardt
> ---
> libavfilter/avfilter.c | 44 +++---
> libavfilter/internal.h | 8
> 2 files changed, 24 insertions(+), 28 deletions(-)
>
> diff --git a/libavfilter
On Thu, Mar 30, 2023 at 4:07 PM Tom Boshoven wrote:
>
> Due to the way the bandwidth estimation code works, the get_cue_desc
> function was called many times over.
> This function did a from-scratch lookup using a timestamp.
> This lookup was done using linear iteration (O(n)), resulting in
> sign
doc/demuxers.texi: Documented how to use the new parameter.
Usage example:
ffmpeg -i /dev/video0 -strftime 1 -strftime_mkdir 1
"/tmp/%Y/%m/%Y_%m_%d-%H_%M_%S.jpg"
---
doc/muxers.texi | 13 +
libavformat/img2enc.c | 28 +++-
2 files changed, 36 insertions
On Tue, Aug 1, 2023 at 9:51 PM Cosmin Stejerean wrote:
> On Jul 27, 2023, at 11:36 AM, Michael Niedermayer
> wrote:
>
> Let me first explain what i want to provide to the user (most of this
> is already implemented, some needs more work)
> the user starts her favorite player, be that vlc, ffplay
On Jul 27, 2023, at 11:36 AM, Michael Niedermayer
wrote:
Let me first explain what i want to provide to the user (most of this
is already implemented, some needs more work)
the user starts her favorite player, be that vlc, ffplay, or whatever
chooses sdr as input device and thats all configurati
On Tue, Aug 01, 2023 at 12:55:49PM +0200, Andreas Rheinhardt wrote:
> Michael Niedermayer:
> > Fixes:
> > 54979/clusterfuzz-testcase-minimized-ffmpeg_dem_AVR_fuzzer-6681035461230592
> > Fixes: Timeout
> >
> > Found-by: continuous fuzzing process
> > https://github.com/google/oss-fuzz/tree/master
On Tue, Aug 01, 2023 at 09:30:54AM -0400, Leo Izen wrote:
> This prevents code duplication in the source form by calling the parse
> code that was moved to avcodec last commit. The code will be duplicated
> in binary form for shared builds (it's not that large), but for source
> code it will only e
On Jul 27, 2023, at 4:13 AM, Anton Khirnov wrote:
Quoting Tomas Härdin (2023-07-26)
tis 2023-07-25 klockan 14:09 -0300 skrev James Almer:
Signed-off-by: James Almer
---
Now inserting a filter into the graph.
This looks useful for MXF
+ { "apply_cropping", HAS_ARG | OPT_BOOL | OPT_SPEC |
+
Having a decode_slice callback is mandatory for HWAccels;
the only exception to this (and the reason why these checks
were added) was XvMC, but it is no more since commit
be95df12bb06b183c8d2aea3b0831fdf05466cf3.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/error_resilience.c | 4 ++--
libav
Having a decode_slice callback is mandatory for HWAccels;
the only exception to this (and the reason why these checks
were added) was XvMC, but it is no more since commit
be95df12bb06b183c8d2aea3b0831fdf05466cf3.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/error_resilience.c | 4 ++--
1 fil
The discrepancy between the actual definition and the declarations
in hwaccels.h is actually UB.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/nvdec_mjpeg.c | 2 +-
libavcodec/nvdec_vp8.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/nvdec_mjpeg.c b/libav
Signed-off-by: Andreas Rheinhardt
---
libavfilter/avfilter.c | 44 +++---
libavfilter/internal.h | 8
2 files changed, 24 insertions(+), 28 deletions(-)
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index b8e1523bdb..df6f1ab3de 100644
Otherwise the var_names and the corresponding enum will be off
and e.g. the array holding the variable values will be too small.
Signed-off-by: Andreas Rheinhardt
---
libavfilter/avfilter.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
inde
The Vulkan spec wants ScalingList8x8 as defined by ITU spec, which is in
a different order from how ffmpeg parses it.
v2: generalize for 444 case
v3: fix whitespace
---
libavcodec/vulkan_h264.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavcodec/vulkan_h264.c b/li
The Vulkan spec wants ScalingList8x8 as defined by ITU spec, which is in
a different order from how ffmpeg parses it.
---
libavcodec/vulkan_h264.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/libavcodec/vulkan_h264.c b/libavcodec/vulkan_h264.c
index 84bcef7933..9d4f
Adds a fate test for the jpegxl_anim demuxer, that should allow testing
for true positives and false positives for animated jpegxl files. Note
that two of the test cases are not animated, in order to help sort out
false positives.
Signed-off-by: Leo Izen
---
tests/Makefile
This prevents code duplication in the source form by calling the parse
code that was moved to avcodec last commit. The code will be duplicated
in binary form for shared builds (it's not that large), but for source
code it will only exist in one location now.
Signed-off-by: Leo Izen
---
libavform
Add a parser to libavcodec for AV_CODEC_ID_JPEGXL. It doesn't find the
end of the stream in order to packetize the codec, but it does look at
the headers to set preliminary information like dimensions and pixel
format.
Note that much of this code is duplicated from avformat/jpegxl_probe.c,
but tha
Before this commit, the decoder erroneously assumes that the AVFrame
passed to the receive_frame is the same one each time. Now it keeps an
internal AVFrame to write into, and copies it over when it's done.
Signed-off-by: Leo Izen
---
libavcodec/libjxldec.c | 37 +
Changes from v5:
- Attached an extra commit to fix existing bug with libjxldec
- Made various changes based on comments by Andreas Reinhardt
-- removed jpegxl_parse.c from avformat, and jpegxl_parse.o from
avformat/Makefile/OBJS
-- checked for failure in init_vlc_lengths
-- used a macro to initial
Fixes an error that's caused by decoding a grayscale JXL image after an
RGB image is decoded, with the same decoder instance.
Signed-off-by: Leo Izen
---
libavcodec/libjxldec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/libjxldec.c b/libavcodec/libjxldec.c
Le 31 juillet 2023 00:07:37 GMT+07:00, Andrey Turkin
a écrit :
>вс, 30 июл. 2023 г. в 16:04, Nicolas George :
>
>> Kieran Kunhya (12023-07-28):
>> > FFmpeg doesn't implement TCP in userspace, it doesn't implement the
>> > WiFi protocol etc etc. Different layers are delegated to different
>> > p
Michael Niedermayer:
> Fixes:
> 54979/clusterfuzz-testcase-minimized-ffmpeg_dem_AVR_fuzzer-6681035461230592
> Fixes: Timeout
>
> Found-by: continuous fuzzing process
> https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> Signed-off-by: Michael Niedermayer
> ---
> libavformat/avr.c
39 matches
Mail list logo