Zhao Zhili
ac5dffdfe6
libavcodec/dynamic_hdr_vivid: fix start code check
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2 years ago
Zhao Zhili
0f2bef2684
avcodec/dynamic_hdr_vivid: fix three spline params
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2 years ago
Andreas Rheinhardt
85b185b504
avcodec/av1dec: Fix unintended fallthrough
...
Fixes Coverity issue #1521982 .
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
James Almer
0d35634eaa
avcodec/libdav1d: Fix unintended fallthrough
...
Based on a patch by Andreas Rheinhardt
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
Andreas Rheinhardt
a6e9d01f88
avcodec/libx264: Use av_pix_fmt_count_planes() where appropriate
...
This also fixes the number of planes for the NV formats
(this seems to not have caused any problems).
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Reviewed-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
19e35edaf1
avcodec/libx264: Use dedicated pointer for accesses
...
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Reviewed-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
df53d7a194
avcodec/libx264: Pass x264_picture_t* directly
...
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Reviewed-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
f456c192d9
avcodec/libx264: Fix leak in case of allocation failure
...
Fixes Coverity issue #1518906 .
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Reviewed-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
4175022bdb
avcodec/libvpxdec: Constify VP9-decoder
...
Possible since 8d226fb978
.
Reviewed-by: James Zern <jzern-at-google.com@ffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
430dcd52b6
avcodec/libopencore-amr: Use frame_number instead of frame_num
...
Forgotten in 6b6f7db819
.
Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
7f825d3335
avcodec/libxavs: Use frame_num instead of frame_number
...
Forgotten in 6b6f7db819
.
Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Jan Ekström
fba9d9609f
avcodec/libsvtav1: use larger of bit rate and max rate for buffer size
...
Generally if maxrate is set, the calculation should be maxrate over
bufsize. This additionally enables CRF + maxrate & bufsize usage.
In order to keep negative values from enabling zero to be treated
as larger and causing a division by zero, check that one of the
variables is larger than zero.
2 years ago
Michael Niedermayer
7c130d6911
avcodec/mpeg12dec: Check input size
...
Fixes: Timeout
Fixes: 53599/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IPU_fuzzer-4950102511058944
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years ago
Michael Niedermayer
f669dd4dff
avcodec/escape124: Simplify unpack_codebook()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years ago
Michael Niedermayer
98df605f7a
avcodec/escape124: Fix some return codes
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years ago
Michael Niedermayer
87ad0a5dd7
avcodec/escape124: fix signdness of end of input check
...
Fixes: Timeout
Fixes: 56561/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ESCAPE124_fuzzer-5560363635834880
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years ago
James Almer
8e5e578453
avocdec/Makefile: add missing dependencies to av1 and libdav1d decoders
...
Missed in d6d5765051
and b465e6fed0
Respectively.
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
Stefano Sabatini
dcf963f490
lavc/avcodec.h: extend documentation for avcodec_open2()
...
In particular, clarify how to set options in the codec context, and
mention when to use avcodec_parameters_to_context().
Fix trac issues:
http://trac.ffmpeg.org/ticket/5781
http://trac.ffmpeg.org/ticket/5838
2 years ago
Anton Khirnov
a3bf63c26e
lavc/decode: stop mangling last_pkt_props->opaque
...
It is currently abused to store packet size, which breaks
AV_CODEC_FLAG_COPY_OPAQUE.
Use stream_index instead, which is unused in libavcodec and has the
same type as size.
Found-by: Martin Storsjö
2 years ago
James Almer
68a858fcc9
avcodec/av1dec: make CBS parse only the OBU types we care about
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
d6d5765051
avcodec/av1dec: parse and export Metadata OBUs
...
This includes Mastering Display, Content light level, and some ITU-T T35
metadata like closed captions and HDR10+.
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
Timo Rothenpieler
7a8560cb22
avcodec/nvenc: avoid failing b_ref_mode check when unset
2 years ago
Anton Khirnov
ae95c87e64
lavc/libvpxenc: drop FrameListData.duration
...
It is write-only.
2 years ago
Anton Khirnov
942fb48c38
lavc/libvpxenc: handle queue desync more gracefully
...
If the packets returned by libvpx and our internal frame properties
queue get desynchronized for some reason (should not happen, but it is
not clear libvpx API guarantees this), we will keep adding to the queue
indefinitely and never remove anything.
Change the code to drain the queue even if timestamps do not match.
2 years ago
Anton Khirnov
62a241e505
lavc/libvpxenc: drop a useless condition
...
A non-NULL packet is always passed to frame_data_apply().
2 years ago
Anton Khirnov
5bda4ec6c3
lavc/libvpxenc: handle frame durations and AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
2 years ago
Anton Khirnov
7141a37e2f
lavc/libvpxenc: rename hdr10_plus_fifo and related objects
...
This AVFifo is used to propagate HDR metadata from input frames to
output packets, since libvpx does not allow passing through arbitrary
user data.
It will be extended to pass through other kinds of data in future
commits, so give it a more generic name.
2 years ago
Anton Khirnov
31fc61fb0c
lavc/libvpxenc: reindent
2 years ago
Anton Khirnov
f367aa5db6
lavc/libvpxenc: drop frame_number
...
It is not used, except to check whether the packet is valid before
writing HDR metadata to the packet in storeframe(). However, that check
serves no purpose, as the encoded packet is already treated as valid
higher up in this function.
2 years ago
James Almer
7dc0944ce2
avcodec/libdav1d: reindent after previous commit
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
b465e6fed0
avcodec/libdav1d: export Dynamic HDR10+ frame metadata
...
As defined in https://aomediacodec.github.io/av1-hdr10plus/
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
xufuji456
b10eabdab3
codec/arm/hevcdsp_idct_neon: remove duplicate mov
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2 years ago
Nicolas Gaullier
3153c441e1
avcodec/ac3: Remove unused fields
...
Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2 years ago
Anton Khirnov
432adca5fe
lavc: disable an obsolete hack for real video
...
AVCodecContext.slice_{count,offset} are unneeded since 2007, commit
383b123ed3
and following. Deprecate those
fields.
2 years ago
Marth64
373ef1c4fa
avcodec/version: bump minor version to accommodate spatial audio detection
...
Signed-off-by: Marth64 <marth64@proxyid.net>
2 years ago
Marth64
98a4699216
avcodec/dca_xll: add detection of DTS:X and DTS:X IMAX
...
Signed-off-by: Marth64 <marth64@proxyid.net>
2 years ago
Marth64
96ed043afa
avcodec/mlpdec: add detection of Atmos spatial extension profile in TrueHD
...
Signed-off-by: Marth64 <marth64@proxyid.net>
2 years ago
Marth64
a4e5b94633
avcodec/eac3dec: add detection of Atmos spatial extension profile
...
Signed-off-by: Marth64 <marth64@proxyid.net>
2 years ago
Zhao Zhili
814178f926
avcodec/aacps_tablegen: fix build error after avutil bump
...
Fix tickets #10225
DECLARE_ALIGNED has been moved to mem_internal.h.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Reviewed-by: Anton Khirnov <anton@khirnov.net>
2 years ago
James Almer
52a0852ae6
libavcodec/libvpxenc: move libvpx-vp9 init_static_data function to the only place it's used
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
8d226fb978
avcodec/libvpxdec: remove unnecessary init_static_data function
...
It's used only by the encoder.
Reviewed-by: James Zern <jzern@google.org>
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
de133eaaba
avcodec/pthread_frame: remove forgotten deprecation warning wrappers
...
Missed in e0786a8e
.
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
JonHGee
e026e29460
libavcodec/libfdk-aacenc: send encoder delay/padding in packet side data
...
Signed-off-by: JonHGee <JonHGee@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2 years ago
JonHGee
3ff4a3d2ec
libavcodec/libfdk-aacenc: Enable writing DRC metadata
...
Signed-off-by: JonHGee <JonHGee@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2 years ago
Leo Izen
fadfa147f8
avcodec/pngdec: read colorspace info when decoding with AVDISCARD_ALL
...
These chunks are lightweight and it's useful information to have when
running ffmpeg -i or ffprobe, for example.
2 years ago
Zhao Zhili
21101d9eb1
avcodec/nvenc: fix potential NULL pointer dereference
...
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
2 years ago
xufuji456
67fd1b79e7
libavcodec/hevc: remove duplicate semicolon in hevcdsp_init_neon
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2 years ago
xufuji456
05438db024
libavcodec/hevc: reuse scale_store on idct32x32_neon
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2 years ago
xufuji456
4b4de07721
libavcodec/hevc: add hevc idct4x4 neon of aarch64
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2 years ago
Martin Storsjö
ec7fa13eb0
aarch64: hevcdsp_idct: Reuse preexisting macros for transposes
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2 years ago