On Mon, May 6, 2024 at 3:45 PM Черненко Руслан wrote:
>
> Signed-off-by: Chernenko Ruslan
> ---
> libavcodec/videotoolbox_av1.c | 102 --
> 1 file changed, 72 insertions(+), 30 deletions(-)
>
> diff --git a/libavcodec/videotoolbox_av1.c b/libavcodec/videotoolbox
MAINTAINERS: add myself as *BSD maintainer
I try to help out with *BSD patches or build related issues where I can.
Signed-off-by: Brad Smith
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index dd633f37e8..41a98744ad 100644
--- a/MAINTAINERS
+++ b
On 12/05/2024 02:18, Michael Niedermayer wrote:
On Sun, May 12, 2024 at 02:13:06AM +0200, Lynne via ffmpeg-devel wrote:
On 12/05/2024 02:03, Michael Niedermayer wrote:
Fixes: CID1473514 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer
---
l
On Sun, May 12, 2024 at 02:13:06AM +0200, Lynne via ffmpeg-devel wrote:
> On 12/05/2024 02:03, Michael Niedermayer wrote:
> > Fixes: CID1473514 Uninitialized scalar variable
> >
> > Sponsored-by: Sovereign Tech Fund
> > Signed-off-by: Michael Niedermayer
> > ---
> > libavcodec/lpc.c | 5 +++--
>
On 2024-05-11 8:13 p.m., Michael Niedermayer wrote:
Hi
On Sat, May 11, 2024 at 06:24:32PM -0400, Brad Smith wrote:
On 2024-05-11 5:49 p.m., Michael Niedermayer wrote:
On Sat, May 11, 2024 at 03:55:44PM -0400, Brad Smith wrote:
On 2024-05-06 10:24 p.m., Michael Niedermayer wrote:
On Sun, May
Hi
On Sat, May 11, 2024 at 06:24:32PM -0400, Brad Smith wrote:
> On 2024-05-11 5:49 p.m., Michael Niedermayer wrote:
> > On Sat, May 11, 2024 at 03:55:44PM -0400, Brad Smith wrote:
> > > On 2024-05-06 10:24 p.m., Michael Niedermayer wrote:
> > > > On Sun, May 05, 2024 at 11:21:58PM -0400, Brad Smi
On 12/05/2024 02:03, Michael Niedermayer wrote:
Fixes: CID1473514 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer
---
libavcodec/lpc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavcodec/lpc.c b/libavcodec/lpc
This could cause timeouts
Fixes: CID1439568 Untrusted loop bound
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer
---
libavcodec/mscc.c | 6 ++
libavcodec/mwsc.c | 11 +++
2 files changed, 17 insertions(+)
diff --git a/libavcodec/mscc.c b/libavcodec/mscc.c
inde
Fixes: CID1500285 Unintentional integer overflow
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer
---
libavcodec/mpegvideo_enc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index b601a1a9e40..
Helps: CID1473517 Uninitialized scalar variable
Helps: CID1473497 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer
---
libavcodec/mpeg4videodec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4v
I dont think this can actually overflow but 64bit seems reasonable to use
Fixes: CID1521983 Unintentional integer overflow
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer
---
libavcodec/mpeg12dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcod
Fixes: CID1473514 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer
---
libavcodec/lpc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index 8305cc0596a..981dacce8a5 100644
--- a/libav
fre 2024-05-10 klockan 14:48 +0200 skrev Andreas Rheinhardt:
> Tomas Härdin:
> > ons 2024-05-08 klockan 17:06 -0300 skrev James Almer:
> > > On 5/8/2024 5:01 PM, Marton Balint wrote:
> > > >
> > > >
> > > > On Wed, 8 May 2024, Tomas Härdin wrote:
> > > >
> > > > >
> > > > >
> > > >
> > > > Wh
On 2024-05-11 5:49 p.m., Michael Niedermayer wrote:
On Sat, May 11, 2024 at 03:55:44PM -0400, Brad Smith wrote:
On 2024-05-06 10:24 p.m., Michael Niedermayer wrote:
On Sun, May 05, 2024 at 11:21:58PM -0400, Brad Smith wrote:
avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
Use th
On Sat, May 11, 2024 at 03:55:44PM -0400, Brad Smith wrote:
> On 2024-05-06 10:24 p.m., Michael Niedermayer wrote:
> > On Sun, May 05, 2024 at 11:21:58PM -0400, Brad Smith wrote:
> > > avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
> > >
> > > Use the machdep.altivec sysctl on NetBS
This is all that is used. This is in preparation for further
commits that will extend ff_mpv_decode_init() in a way
that will make it possible to fail and require cleanup.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpeg12dec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff -
Signed-off-by: Andreas Rheinhardt
---
libavcodec/h263.c | 9 -
libavcodec/h263enc.h | 2 +-
libavcodec/ituh263enc.c| 14 ++
libavcodec/mpegvideo_enc.c | 4 ++--
4 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/libavcodec/h263.c b/libavcode
Only MPEG-2 can have field motion vectors with coded fields.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo_motion.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/libavcodec/mpegvideo_motion.c b/libavcodec/mpegvideo_motion.c
index 01c8d82e98..5b72196395 10
Forgotten after 41f974205317f6f40e72c9689374ab52d490dc6a.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/vc1_pred.c | 26 +-
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/libavcodec/vc1_pred.c b/libavcodec/vc1_pred.c
index 6e260fa053..87d9b6d6dc 100644
The H.264 decoder used reference to store its picture_structure
into it; yet it does not use mpegvideo any more since commit
2c541554076cc8a72e7145d4da30389ca763f32f. Afterwards commit
629259bdb58061b7b7c1ae4cdc44599f6c0bb050 removed the last remnants.
Signed-off-by: Andreas Rheinhardt
---
libav
It is redundant due to the identical check in ff_mpv_encode_init().
Signed-off-by: Andreas Rheinhardt
---
libavcodec/ituh263enc.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/libavcodec/ituh263enc.c b/libavcodec/ituh263enc.c
index b7c9f124a9..4b3c55896f 100644
--- a/libavcodec/ituh263
Improves readability.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/h263dec.c | 34 ++--
libavcodec/motion_est.c | 8 +--
libavcodec/mpegvideo.c | 6 +--
libavcodec/mpegvideo.h | 10 +++-
libavcodec/mpegvideo_e
It has been added in a579db0c4fe026d49c71d1ff64a2d1d07c152d68
due to XvMC, but today it is only used to swap U and V
for VCR2, a MPEG-2 variant with U and V swapped.
This can be done in a simpler fashion, namely by simply
swapping the U and V pointers of the corresponding
MPVWorkPictures.
Signed-o
MPEG-1/2 only needs one scantable and therefore all code
already uses the intra one. So stop initializing
the inter one altogether.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpeg12dec.c | 11 ---
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/libavcodec/mpeg12dec.c
Avoids a cast.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpeg12dec.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index 0d5540fd2f..52f98986f6 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo.c | 1 -
libavcodec/mpegvideo_dec.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 93df8a315d..8a8ff2fbd9 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@
The days in which an MPVPicture* is set with the corresponding frame
being blank are over; this allows to simplify some checks.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo_dec.c | 10 +-
libavcodec/rv34.c | 3 +--
2 files changed, 6 insertions(+), 7 deletions(-)
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpeg12enc.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index 304cfb9046..ba56f0c37a 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -271,11 +271,10 @@
This also rids us of the requirement to preserve the PutBitContext
in ff_update_duplicate_context().
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo.c | 1 -
libavcodec/mpegvideo_enc.c | 42 +-
2 files changed, 19 insertions(+), 24 deletions(-)
Only set the ScratchpadContext and let the users that need it
(i.e. encoders) set the MotionEstContext stuff themselves.
Also add an explicit pointer to ScratchpadContext to point
to the allocated buffer so that none of the other scratchpad
pointers is singled out as being used for the allocations.
These pointers point to the same buffers, so one can just
use a union for them and avoid synchronising one of them.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegpicture.c | 1 -
libavcodec/mpegpicture.h | 6 --
libavcodec/mpegvideo.c | 1 -
3 files changed, 4 insertions(+), 4 delet
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegpicture.c | 11 ---
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/libavcodec/mpegpicture.c b/libavcodec/mpegpicture.c
index ea5d54c670..9308fce97c 100644
--- a/libavcodec/mpegpicture.c
+++ b/libavcodec/mpegpicture.c
@@ -
Given that MPVPictures are already directly shared between threads
in case of frame-threaded decoding, one can simply use it to
pass decoding progress information between threads. This allows
to avoid one level of indirection; it also means avoids allocations
(of the ThreadFrameProgress structure)
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpeg4videoenc.c | 21 +++--
1 file changed, 7 insertions(+), 14 deletions(-)
diff --git a/libavcodec/mpeg4videoenc.c b/libavcodec/mpeg4videoenc.c
index 76960c2ced..583ea9de6f 100644
--- a/libavcodec/mpeg4videoenc.c
+++ b/libavcodec
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpeg4videoenc.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/libavcodec/mpeg4videoenc.c b/libavcodec/mpeg4videoenc.c
index 2f4b1a1d52..76960c2ced 100644
--- a/libavcodec/mpeg4videoenc.c
+++ b/libavcodec/mpeg4videoenc.
Up until now, an initialized MpegEncContext had an array of
MPVPictures (way more than were ever needed) and the MPVPicture*
contained in the MPVWorkPictures as well as the input_picture
and reordered_input_picture arrays (for the encoder) pointed
into this array. Several of the pointers could poin
Currently identical to the H.261 and H.263 close functions
(which it replaces). It will be extended in future commits.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/flvdec.c| 4 ++--
libavcodec/h261dec.c | 11 +--
libavcodec/h263dec.c | 12 ++--
libavcodec
This brings it in line with mpeg12dec.c.
(This entry has been added before the MPEG2VIDEO codec id
existed.)
Signed-off-by: Andreas Rheinhardt
---
libavformat/riff.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 306dc3b47a..ca81
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpeg12dec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index e573d3cdff..0e2012b324 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -794,6 +794,8 @@ st
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpeg12dec.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index 3cd706de36..e573d3cdff 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -2788,8 +2788,6 @@ static int ipu_deco
IPU is intra-only.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpeg12dec.c | 16 ++--
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index e3f2dd8af7..097e4ba19a 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/
Also try to use loop-scope for iterators.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo_enc.c | 193 ++---
1 file changed, 96 insertions(+), 97 deletions(-)
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 610067eaef..c9dc99
Possible now that this is a function of its own.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo_enc.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 025204f395..610067eaef 100644
--- a/libavcodec
It already avoids a goto and will be useful in the future
to be able to specify each functions tasks and obligations.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo_enc.c | 33 +
1 file changed, 25 insertions(+), 8 deletions(-)
diff --git a/libavcodec
Signed-off-by: Andreas Rheinhardt
---
libavcodec/error_resilience.c | 20 ++--
1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c
index efbacb8760..66d03987b6 100644
--- a/libavcodec/error_resilience.c
+++ b
There are two types of MPVPictures: Three (cur_pic, last_pic, next_pic)
that are directly part of MpegEncContext and an array of MPVPictures
that are separately allocated and are mostly accessed via pointers
(cur|last|next)_pic_ptr; they are also used to store AVFrames in the
encoder (necessary due
Instead cache these values in VC1Context to avoid the indirection
and AND.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/vc1.h| 1 +
libavcodec/vc1_mc.c | 20 +---
libavcodec/vc1dec.c | 2 ++
3 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/libavcodec/vc1
Picture is just too generic.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/dxva2_mpeg2.c | 2 +-
libavcodec/dxva2_vc1.c| 4 ++--
libavcodec/intrax8.c | 2 +-
libavcodec/intrax8.h | 2 +-
libavcodec/ituh263dec.c | 4 ++--
libavcodec/mpeg4videoenc.c
This way said function sets everything (except for the actual
contents of the frame's data). Also rename it to prepare_picture()
given its new role.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo_enc.c | 22 +++---
1 file changed, 11 insertions(+), 11 deletions(-)
di
It now only deals with the AVFrame and no longer with the accessories.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo_enc.c | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index d4b
ff_alloc_picture() currently does two things: It checks the
consistency of the linesize (which should not be necessary, but is)
and it allocates certain buffers. (It does not actually allocate
the picture buffers, so its name is misleading.)
This commit splits it into two separate functions. The ra
Make it clear that this is not a failure of get_buffer/the user,
but a deficit of mpegvideo.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegpicture.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/libavcodec/mpegpicture.c b/libavcodec/mpegpicture.c
index 6d
Signed-off-by: Andreas Rheinhardt
---
libavcodec/vc1_pred.c | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/libavcodec/vc1_pred.c b/libavcodec/vc1_pred.c
index f5e80fe0ef..9141290d26 100644
--- a/libavcodec/vc1_pred.c
+++ b/libavcodec/vc1_pred.c
@@ -66,7 +66
Specifically, add const to the pointed-to-type of pointers
that point to something static or that belong to last_pic
or next_pic (because modifying these might lead to data races).
Signed-off-by: Andreas Rheinhardt
---
libavcodec/h261dec.c | 2 +-
libavcodec/h261enc.c
Use the cached values from MpegEncContext.(cur|last|next)_pic
instead of the corresponding *_pic_ptr.
Also do the same in wmv2dec.c and mpegvideo_enc.c.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo_enc.c | 2 +-
libavcodec/rv30.c | 18 +++---
libavcodec/rv34.c
This avoids an indirection and is in preparation for removing
the AVFrame from MpegEncContext.(cur|last|next)_pic altogether.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/motion_est.c | 16 +++
libavcodec/mpeg12dec.c | 14 +++---
libavcodec/mpeg_er.c
No mpegvideo based codec supports alpha.
While just at it, also make the define shorter.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegpicture.h | 2 +-
libavcodec/mpegvideo.h | 2 +-
libavcodec/mpegvideo_enc.c | 7 +++
3 files changed, 5 insertions(+), 6 deletions(-)
diff --gi
This is done due to invalid input and therefore the encoder is not
affected by it.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index d82a89566c..4b1f882105 100644
This removes a branch from H.263 based decoders.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/h263.c | 3 ---
libavcodec/ituh263enc.c| 3 +++
libavcodec/mpeg4videodec.c | 4
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 5c6ec7db55..d82a89566c 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -617,12 +6
It is the only user of said table and doing so is especially
important given that this buffer is zeroed every time.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/h263.c| 3 ++-
libavcodec/mpegpicture.c | 3 ++-
libavcodec/mpegvideo.c | 19 +++
3 files changed, 15 i
It involves less allocations and therefore has less
potential errors to be checked. One consequence thereof
is that updating the picture tables can no longer fail.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegpicture.c | 82 ++--
libavcodec/mpegpicture
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegpicture.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/libavcodec/mpegpicture.c b/libavcodec/mpegpicture.c
index 2d3cc247c4..32ca037526 100644
--- a/libavcodec/mpegpicture.c
+++ b/libavcodec/mpegpicture.c
@@ -292
This avoids constant allocations+frees and will also allow
to simply switch to the RefStruct API, thereby avoiding
the overhead of the AVBuffer API.
It also simplifies the code, because it removes the "needs_realloc"
field: It was added in 435c0b87d28b48dc2e0360adc404a0e2d66d16a0,
before the introd
VC-1 can switch from between being progressive and interlaced
on a per-frame basis. In the latter case, the number of macroblocks
is aligned to two (or equivalently, the height to 32); therefore
certain buffers are allocated for the bigger mb_height
(see 950fb8acb42f4dab9b1638721992991c0584dbf5 and
Codecs call ff_find_unused_picture() to get the index of
an unused picture; said picture may have buffers left
from using it previously (these buffers are intentionally
not unreferenced so that it might be possible to reuse them;
they are only reused when they are writable, otherwise
they are repla
Codecs call ff_find_unused_picture() to get the index of
an unused picture; said picture may have buffers left
from using it previously (these buffers are intentionally
not unreferenced so that it might be possible to reuse them;
this is mpegvideo's version of a bufferpool). They should
not make an
Namely for the MPEG-4 decoder.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo.c | 13 ++---
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index ca6e637920..2ef69a5224 100644
--- a/libavcodec/mpegvideo.c
+++ b/lib
coded_block is only used for I-frames, so it is unnecessary
to reset it in ff_clean_intra_table_entries() (which
cleans certain tables for a non-intra MB).
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo.c | 8 +---
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/liba
It is only needed for msmpeg4v3, wmv1, wmv2 and VC-1.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo.c | 11 ---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 130ccb4c97..74be22346d 100644
--- a/libavcodec/
With this patch, msmpeg4v1 and msmpeg4v2 no longer use
MpegEncContext.coded_block.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/msmpeg4enc.c | 27 ++-
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/libavcodec/msmpeg4enc.c b/libavcodec/msmpeg4enc.c
ind
Always 8.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo_motion.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/libavcodec/mpegvideo_motion.c b/libavcodec/mpegvideo_motion.c
index ccda20c0f1..56bdce59c0 100644
--- a/libavcodec/mpegvideo_motion.c
+++
When !CONFIG_SMALL, we create separate functions for FMT_MPEG1
(i.e. for MPEG-1/2); given that there are only three possibilities
for out_format (FMT_MPEG1, FMT_H263 and FMT_H261 -- MJPEG and SpeedHQ
are both intra-only and do not have motion vectors at all, ergo
they don't call this function), one
These references now always exist due to dummy frames.
Also remove the corresponding checks in the lowres code
in mpegvideo_dec.c.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo_dec.c| 12
libavcodec/mpegvideo_motion.c | 12
2 files changed, 8 insertions
MPEG-2 allows to pair an intra field (as first field) together
with a P-field. In this case a conformant bitstream has to satisfy
certain restrictions in order to ensure that only the I field
is used for prediction. See section 7.6.3.5 of the MPEG-2
specifications.
We do not check these restrictio
This will allow to avoid outputting them.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegpicture.c | 2 ++
libavcodec/mpegpicture.h | 1 +
libavcodec/mpegvideo_dec.c | 2 ++
3 files changed, 5 insertions(+)
diff --git a/libavcodec/mpegpicture.c b/libavcodec/mpegpicture.c
index aa882cf
This will allow to reuse it to allocate dummy frames for
the second field (which can be a P-field even if the first
field was an intra field).
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo_dec.c | 85 +++---
libavcodec/mpegvideodec.h | 4 ++
2 files
linesize and uvlinesize are supposed to be the common linesize of all
the Y/UV-planes of all the currently cached pictures.
ff_mpeg_update_thread_context() syncs the pictures, yet it did not sync
linesize and uvlinesize. This mostly works, because ff_alloc_picture()
only accepts new pictures if the
The mpegvideo-based codecs currently require the linesize to be
constant (except when the frame dimensions change); one reason
for this is that certain scratch buffers whose size depend on
linesize are only allocated once and are presumed to be correctly
sized if the pointers are != NULL.
This com
It is unnecessary to check for whether the number of planes
of an already existing audio pool coincides with the number
of planes to use for the frame: If the common format of both
is planar, then the number of planes coincides with the number
of channels for which there is already a check*; if not
Signed-off-by: Andreas Rheinhardt
---
libavcodec/ratecontrol.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/ratecontrol.h b/libavcodec/ratecontrol.h
index 1b49889f75..4d71a181b5 100644
--- a/libavcodec/ratecontrol.h
+++ b/libavcodec/ratecontrol.h
@@ -39,6 +
Signed-off-by: Andreas Rheinhardt
---
libavcodec/mpegvideo_enc.c | 2 +-
libavcodec/ratecontrol.c | 5 ++---
libavcodec/ratecontrol.h | 2 +-
libavcodec/snowenc.c | 2 +-
4 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc
Write-only since 6cf0cb8935f515a7b5f79d2e3cf02bd0764943bf.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/h261enc.c | 1 -
libavcodec/ituh263enc.c| 1 -
libavcodec/mpeg12enc.c | 1 -
libavcodec/mpeg4videoenc.c | 3 ---
libavcodec/mpegvideo.h | 1 -
libavcodec/mpegvideo_e
It is currently done inconsistently: Only one error path
(namely the one from init_pass2()) made ff_rate_control_init()
call ff_rate_control_uninit(); in other error paths
cleanup was left to the caller.
Given that the only caller of this function already performs
the necessary cleanup this commit
Fixes signed integer overflows as reported by ubsan.
Signed-off-by: James Almer
---
Now allowing negative values.
tests/checkasm/flacdsp.c | 15 ++-
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/tests/checkasm/flacdsp.c b/tests/checkasm/flacdsp.c
index 6561b4ed20..d
Happens on init_pass2() failure.
Signed-off-by: Andreas Rheinhardt
---
libavcodec/ratecontrol.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c
index 9ee08ecb88..27017d7976 100644
--- a/libavcodec/ratecontrol.c
+++ b/libavcodec/ratecontrol.
On Sat, May 11, 2024 at 10:32 AM Ramiro Polla wrote:
> On Mon, May 6, 2024 at 7:46 PM Rémi Denis-Courmont wrote:
[...]
> > No objections from me, but it would be nice and seemingly trivial to add 9
> > and
> > 10 bits while at it.
[...]
> I'll add checks for the 9 and 10 bits later.
Apparently
On 2024-05-06 10:24 p.m., Michael Niedermayer wrote:
On Sun, May 05, 2024 at 11:21:58PM -0400, Brad Smith wrote:
avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
Use the machdep.altivec sysctl on NetBSD for AltiVec detection
as is done with OpenBSD.
Signed-off-by: Brad Smith
---
Fixes signed integer overflows as reported by ubsan.
Signed-off-by: James Almer
---
tests/checkasm/flacdsp.c | 15 +--
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/tests/checkasm/flacdsp.c b/tests/checkasm/flacdsp.c
index 6561b4ed20..bf25cea39c 100644
--- a/tests/che
Signed-off-by: James Almer
---
tests/checkasm/flacdsp.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tests/checkasm/flacdsp.c b/tests/checkasm/flacdsp.c
index b308237db1..6561b4ed20 100644
--- a/tests/checkasm/flacdsp.c
+++ b/tests/checkasm/flacdsp.c
@@ -58,6 +58,7
The B Bit manipulation extension was not defined to this day, and
probably never will. Instead it was broken down into Zba, Zbb, Zbc and
Zbs with no particular blessed set to make up B.
This removes the bogus field test. Linux never set this bit, nor
(AFAICT) did FreeBSD or any other OS. We can al
Wow, got it
Rémi Denis-Courmont 于2024年5月11日周六 22:39写道:
> Le maanantaina 6. toukokuuta 2024, 6.38.01 EEST u...@foxmail.com a écrit :
> > From: sunyuechi
> >
> > C908:
> > vp8_put_pixels4_c: 78.0
> > vp8_put_pixels4_rvi: 33.7
> > vp8_put_pixels8_c: 278.0
> > vp8_put_pixels8_rvi: 55.0
> > vp8_put_
They are actually awfully slow if the CPU does not support misaligned
accesses natively, so only use them if misaligned accesses are fast.
---
libavcodec/riscv/vp8dsp_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/riscv/vp8dsp_init.c b/libavcodec/riscv/vp8dsp
---
libavutil/cpu.c | 1 +
libavutil/cpu.h | 1 +
libavutil/riscv/cpu.c | 3 +++
libavutil/tests/cpu.c | 3 ++-
tests/checkasm/checkasm.c | 1 +
5 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/libavutil/cpu.c b/libavutil/cpu.c
index 396eeb38d6..9ac2f01c20
Not all C run-times support this, and even then, it will be a while
before distributions provide recent enough versions thereof.
Since this is a trivial system call wrapper, we might just as well call
the corresponding kernel system call directly where the C run-time lacks
support but the kernel h
Le maanantaina 6. toukokuuta 2024, 6.38.01 EEST u...@foxmail.com a écrit :
> From: sunyuechi
>
> C908:
> vp8_put_pixels4_c: 78.0
> vp8_put_pixels4_rvi: 33.7
> vp8_put_pixels8_c: 278.0
> vp8_put_pixels8_rvi: 55.0
> vp8_put_pixels16_c: 999.0
> vp8_put_pixels16_rvi: 86.7
Actually, I do think that t
Adds checkasm for DMVR SAD AVX2 implementation.
Benchmarks ( AMD 7940HS )
vvc_sad_8x8_c: 63.0
vvc_sad_8x8_avx2: 3.0
vvc_sad_16x16_c: 263.0
vvc_sad_16x16_avx2: 23.0
vvc_sad_32x32_c: 1003.0
vvc_sad_32x32_avx2: 83.0
vvc_sad_64x64_c: 3923.0
vvc_sad_64x64_avx2: 373.0
vvc_sad_128x128_c: 17533.0
vvc_sad_
Implements AVX2 DMVR (decoder-side motion vector refinement) SAD functions.
DMVR SAD is only calculated if w >= 8, h >= 8, and w * h > 128. To reduce
complexity, SAD is only calculated on even rows. This is calculated for all
video bitdepths, but the values passed to the function are always 16bi
(only reviewing the documentation, not the code itself)
On Fri, May 10, 2024 at 05:12:19PM -0400, François-Simon Fauteux-Chapleau wrote:
> This is a revised version of the "pipewiregrab" patch submitted by
> Abhishek Ojha a few months ago:
> https://patchwork.ffmpeg.org/project/ffmpeg/patch/202312
On Sat, May 11, 2024 at 3:24 PM Andreas Rheinhardt <
andreas.rheinha...@outlook.com> wrote:
> Paul B Mahol:
> > On Sat, May 11, 2024 at 5:28 AM James Almer wrote:
> >
> >> On 5/10/2024 6:26 PM, Paul B Mahol wrote:
> >>> On Fri, May 10, 2024 at 10:56 AM Zhao Zhili
> >> wrote:
> >>>
> From: Z
1 - 100 of 116 matches
Mail list logo