[FFmpeg-devel] [PATCH] Make compilable with VS2015

2015-03-06 Thread Peter
>From c72344d2b1dc8b087e5da904724c959005f36f4b Mon Sep 17 00:00:00 2001 From: Peter Tissen Date: Fri, 6 Mar 2015 19:39:27 +0100 Subject: [PATCH] Make compilable with VS2015 So Visual Studio 2015 has some breaking changes regarding the C runtime. In short, they made C99 compatable runtime. Re

Re: [FFmpeg-devel] [PATCH] Make compilable with VS2015

2015-03-06 Thread Peter
i, Mar 06, 2015 at 02:59:43PM -0500, Ronald S. Bultje wrote: >> >>> Hi, >> >>> >> >>> On Fri, Mar 6, 2015 at 2:42 PM, Peter wrote: >> >>> >> >>>> From c72344d2b1dc8b087e5da904724c959005f36f4b Mon Sep 17 00:00:00 2001 >&

Re: [FFmpeg-devel] [PATCH] Make compilable with VS2015

2015-03-06 Thread Peter
I admit to being a serial rebaser and force-pusher to pull-requests. :P Anyway, I can't run FATE on that setup, because although the ffmpeg libs compile the ffmpeg command line tool doesn't compile. The old "stdin->_cnt" hack no longer works since "FILE" in the new C runtime is just a struct with

[FFmpeg-devel] Windows deprecated stdin reading method

2015-03-07 Thread Peter
So trying to compile on VS2015 now works fine for the libraries. However the command-line tool does not compile successfully. The issue is this patch https://github.com/FFmpeg/FFmpeg/commit/ca4d71b149ebe32aeaf617ffccf362624b9aafb1 which uses a member of the FILE struct which is not available in th

Re: [FFmpeg-devel] Windows deprecated stdin reading method

2015-03-07 Thread Peter
le and only then call one of the generic read functions? (and let the kbhit and getch that come afterwards handle the console) 2015-03-07 23:38 GMT+01:00 Reimar Döffinger : > On 07.03.2015, at 16:51, Peter wrote: >> The issue is this patch >> https://

Re: [FFmpeg-devel] Windows deprecated stdin reading method

2015-03-07 Thread Peter
peg/commit/93864dd0373bc6561be8e45f14f835453c74e832 2015-03-08 0:22 GMT+01:00 Peter : >>It checks if there is data in the buffer. The point is to do a non-blocking >>read on stdin. > > I don't know how else to do that for stdin. Using WaitForSingleObject with > generic functions like read() from

Re: [FFmpeg-devel] Windows deprecated stdin reading method

2015-03-07 Thread Peter
Sadly it seems WaitForSingleObject behavior with FILE handles is not well defined behavior either, I think I've read the words "strongly discouraged" I'm probably still gonna do some more tests to see if it actually breaks under some circumstances. But this is not the golden ticket solution either

Re: [FFmpeg-devel] Windows deprecated stdin reading method

2015-03-08 Thread Peter
ion ? 2015-03-08 2:25 GMT+01:00 Peter : > Sadly it seems WaitForSingleObject behavior with FILE handles is > not well defined behavior either, I think I've read the words "strongly > discouraged" > > I'm probably still gonna do some more tests to see if it actual

Re: [FFmpeg-devel] Windows deprecated stdin reading method

2015-03-08 Thread Peter
; stdin to CreateProcess > or whether testing that is necessary) > > Also, very crucially, I just checked if any of these methods actually > triggered either condition > and none of the things I tried actually entered the body of the if-check. > > Is there anything that would

Re: [FFmpeg-devel] [PATCH 9/9] avcodec/vp3: Replace check by assert

2024-05-18 Thread Peter Ross
& 7) + 2; > y_offset = (-(y + 2) & 7) + 2; > > -if (x_offset > 8 + x_subpel && y_offset > 8 + y_subpel) > -return 0; > + av_assert1(!(x_offset > 8 + x_subpel && y_offset > 8 + y_subpel)); > ok -- P

Re: [FFmpeg-devel] [PATCH 1/9] avcodec/vqcdec: Check init_get_bits8() for failure

2024-05-18 Thread Peter Ross
&gb, buf, size); > +if (ret < 0) > +return ret; > > for (int i = 0; i < 3 * width * height / 2 / 32; i++) { > uint8_t * dst = vectors; ok -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signature

[FFmpeg-devel] [PATCH 1/4] mm: set audio pts proportionally to audio offset

2024-06-08 Thread Peter Ross
= av_get_packet(s->pb, pkt, length)) < 0) return ret; pkt->stream_index = 1; -pkt->pts = mm->audio_pts++; +pkt->pts = mm->audio_pts; +mm->audio_pts += length; return 0; default : -- 2.4

[FFmpeg-devel] [PATCH 2/4] mm: decode partial palette

2024-06-08 Thread Peter Ross
24 | (bytestream2_get_be24(&s->gb) << 2); } /** -- 2.43.0 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubsc

[FFmpeg-devel] [PATCH 3/4] mm: don't fail if x offset exceeds frame width

2024-06-08 Thread Peter Ross
if (replace) { int color = bytestream2_get_byte(&data_ptr); s->frame->data[0][y*s->frame->linesize[0] + x] = color; -- 2.43.0 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) ___ ffmpeg-deve

[FFmpeg-devel] [PATCH 4/4] mm: decode raw chunk type and skip unknown audio chunk type

2024-06-08 Thread Peter Ross
av_log(s, AV_LOG_INFO, "unknown chunk type 0x%x\n", type); +case MM_TYPE_AUDIO2 : avio_skip(pb, length); } } -- 2.43.0 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) ___ ffmpeg-devel mailing

[FFmpeg-devel] [PATCHv2 1/4] avcodec/mm: set audio pts proportionally to audio offset

2024-06-26 Thread Peter Ross
= av_get_packet(s->pb, pkt, length)) < 0) return ret; pkt->stream_index = 1; -pkt->pts = mm->audio_pts++; +pkt->pts = mm->audio_pts; +mm->audio_pts += length; return 0; default : -- 2.4

[FFmpeg-devel] [PATCHv2 2/4] avcodec/mm: decode partial palette

2024-06-26 Thread Peter Ross
tte[i+128] = s->palette[i]<<2; -} +int start = bytestream2_get_le16(&s->gb); +int count = bytestream2_get_le16(&s->gb); +for (int i = 0; i < count; i++) +s->palette[start+i] = 0xFFU << 24 | (bytestream2_get_be24(&s->gb) << 2); }

[FFmpeg-devel] [PATCHv2 3/4] avcodec/mm: don't fail if x offset exceeds frame width

2024-06-26 Thread Peter Ross
if (replace) { int color = bytestream2_get_byte(&data_ptr); s->frame->data[0][y*s->frame->linesize[0] + x] = color; -- 2.43.0 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signature

[FFmpeg-devel] [PATCHv2 4/4] avcodec/mm: decode raw chunk type and skip unknown audio chunk type

2024-06-26 Thread Peter Ross
VFormatContext *s, default : av_log(s, AV_LOG_INFO, "unknown chunk type 0x%x\n", type); +case MM_TYPE_AUDIO2 : avio_skip(pb, length); } } -- 2.43.0 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Descript

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/siren: prevent getbitcontext overread

2021-09-25 Thread Peter Ross
On Sat, Sep 18, 2021 at 08:01:38PM +1000, Peter Ross wrote: > --- > libavcodec/siren.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/siren.c b/libavcodec/siren.c > index 2161b29a2c..3b0ad7b642 100644 > --- a/libavcodec/siren.c >

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/siren: Check available bits at frame start

2021-09-28 Thread Peter Ross
0 condition to the loop in > decode_envelope(). > And there should be at least four bits left after decode_envelope() returns, > so check for that too. suggest increasing the threshold to include: s->sample_rate_bits + s->number_of_regions + 4 + s->checksum_bits > get_bits_le

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/gemdec: Use ff_set_dimensions()

2021-10-11 Thread Peter Ross
t_be16(&gb); > +height = bytestream2_get_be16(&gb); > +ret = ff_set_dimensions(avctx, width, height); > +if (ret < 0) > +return ret; > > row_width = (avctx->width + 7) / 8; > put_lines = put_lines_bits; looks good. please apply. -- Peter

Re: [FFmpeg-devel] [PATCH] avformat/scd: add demuxer

2021-11-22 Thread Peter Ross
i)) < 0) > > > +    return ret; > > > +    } > > > + > > > +    if (ctx->hdr.table1.count == 0) > > > +    return 0; > > > + > > > +    if ((ret = avio_seek(s->pb, ctx->

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/vp3: Check version in all cases when VP4 code is not built

2021-11-30 Thread Peter Ross
return AVERROR_DECODER_NOT_FOUND; > +} > +#endif > +s->version = version; > if (avctx->frame_number == 0) > av_log(s->avctx, AV_LOG_DEBUG, > "VP ver

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/gemdec: Check tag & planes before image allocation

2021-11-30 Thread Peter Ross
put_lines_bytes; > -} else { > -avpriv_request_sample(avctx, "planes=%d", planes); > -return AVERROR_PATCHWELCOME; > } > > ret = av_reallocp_array(&avctx->priv_data, planes, row_width); please apply -- Peter (A907 E02F A6E5 0CD2 34CD

Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/mvdec: handle audio sample size

2021-11-30 Thread Peter Ross
ex_entry(vst, pos + asize, i, vsize, 0, > AVINDEX_KEYFRAME); > -timestamp += asize / (ast->codecpar->channels * 2LL); > +timestamp += asize / (ast->codecpar->channels * > bytes_per_sample); > } > } else if (!version && avio_rb16(pb) ==

Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/mvdec: handle audio sample size

2021-12-03 Thread Peter Ross
On Wed, Dec 01, 2021 at 04:18:42PM +1100, Peter Ross wrote: > On Sat, Nov 27, 2021 at 04:45:51PM -0500, John-Paul Stewart wrote: > > Adds support for reading audio sample size from the data instead of > > assuming all audio is 16 bits per sample. > > --- > >

[FFmpeg-devel] [PATCHv2 1/2] avcodec: LEAD MCMP decoder

2023-10-15 Thread Peter Ross
Partially fixes ticket #798 Reviewed-by: James Almer Reviewed-by: Michael Niedermayer Signed-off-by: Peter Ross --- configure | 1 + doc/general_contents.texi | 1 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c| 1 + libavcodec/codec_desc.c | 7

[FFmpeg-devel] [PATCHv2 2/2] fate: LEAD MCMP test case

2023-10-15 Thread Peter Ross
Signed-off-by: Peter Ross --- Files: https://trac.ffmpeg.org/raw-attachment/ticket/798/BeforeEmboss1.avi https://trac.ffmpeg.org/raw-attachment/ticket/798/DaDa_CMP1.avi https://trac.ffmpeg.org/raw-attachment/ticket/798/version320x240i1.avi tests/fate/video.mak | 9 + tests

[FFmpeg-devel] [PATCH 1/3] avformat/rmdec: support RMHD file format

2023-10-18 Thread Peter Ross
+else if (ver == 2) +expected_len = 24 + n_pkts * 18LL; if (len == 20 && expected_len <= INT_MAX) /* some files don't add index entries to chunk size... */ @@ -1078,7 +1094,7 @@ static int rm_probe(const

[FFmpeg-devel] [PATCH 3/3] fate: rv60 test cases

2023-10-18 Thread Peter Ross
, 7776, 0xe1973be5 +0, 33, 33,1, 7776, 0x26283bde +0, 36, 36,1, 7776, 0xbcda3aca -- 2.42.0 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signature

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/rv60: RealVideo 6.0 decoder

2023-10-21 Thread Peter Ross
On Wed, Oct 18, 2023 at 04:42:01PM +0200, Anton Khirnov wrote: > Quoting Peter Ross (2023-10-18 10:03:54) [..] > I think you can simplify this into: > if (s->last_frame[NEXT_PIC]->data[0]) { > av_frame_move_ref(frame, s->last_frame[NEXT_PIC]); >

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/rv60: RealVideo 6.0 decoder

2023-10-23 Thread Peter Ross
On Sun, Oct 22, 2023 at 03:37:34PM +0200, Andreas Rheinhardt wrote: > Peter Ross: > > --- > > diff --git a/libavformat/matroska.c b/libavformat/matroska.c > > index 5878594e68..1674806f29 100644 > > --- a/libavformat/matroska.c > > +++ b/libavformat/matroska.c >

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/rv60: RealVideo 6.0 decoder

2023-10-23 Thread Peter Ross
On Mon, Oct 23, 2023 at 12:14:52PM +0200, Anton Khirnov wrote: > Quoting Peter Ross (2023-10-22 01:31:32) > > On Wed, Oct 18, 2023 at 04:42:01PM +0200, Anton Khirnov wrote: > > > Quoting Peter Ross (2023-10-18 10:03:54) > > [..] > > > I think you can simplify this

Re: [FFmpeg-devel] [PATCHv2 1/2] avcodec: LEAD MCMP decoder

2023-11-06 Thread Peter Ross
On Mon, Oct 16, 2023 at 08:43:30AM +1100, Peter Ross wrote: > Partially fixes ticket #798 > > Reviewed-by: James Almer > Reviewed-by: Michael Niedermayer > Signed-off-by: Peter Ross + Paul will push later tonight. thanks everyone for helping out. -- Peter (A907 E02F A6E5 0CD2

[FFmpeg-devel] [PATCH] lead: support unaligned blocks

2023-11-11 Thread Peter Ross
ane < 3; plane++) { const VLCElem * dc_vlc = !plane ? luma_dc_vlc.table : chroma_dc_vlc.table; int dc_bits = !plane ? LUMA_DC_BITS : CHROMA_DC_BITS; -- 2.42.0 -- Peter (A907 E02F A6E5 0CD2 34C

[FFmpeg-devel] [PATCH] lead: support format 0x0

2023-11-11 Thread Peter Ross
;gb, dc_vlc, dc_bits, ac_vlc, ac_bits, +dc_pred + plane, dequant[!(b < 4)], tmp, 8); +for (int yy = 0; yy < 8 && y + yy < avctx->height / 2; yy++) +memcpy(frame->data[plane] + (y+yy)*frame->

Re: [FFmpeg-devel] [PATCH 1/2] avformat/bink: properly mark packets that are key frames

2019-03-28 Thread Peter Ross
On Wed, Mar 27, 2019 at 09:21:46PM +0100, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavformat/bink.c | 11 --- > 1 file changed, 8 insertions(+), 3 deletions(-) > this patch lgtm tested on some bink b samples too. -- Peter (A907 E02F A6E5 0CD2 34CD

[FFmpeg-devel] Patch for Reproducing Issue 7827

2019-04-03 Thread Peter Belkner
This patch does not improve or fix something instead it is meant for easily reproducing issue 7827 (as requested, cf. https://trac.ffmpeg.org/ticket/7827). I've to admit that I don't know how to produce a patch by "git format-patch" instead it was made by "git diff > muxing.patch". diff --git

Re: [FFmpeg-devel] Patch for Reproducing Issue 7827

2019-04-04 Thread Peter Belkner
On 04.04.2019 08:49, myp...@gmail.com wrote: On Thu, Apr 4, 2019 at 2:33 PM Peter Belkner wrote: This patch does not improve or fix something instead it is meant for easily reproducing issue 7827 (as requested, cf. https://trac.ffmpeg.org/ticket/7827). I've to admit that I don't k

Re: [FFmpeg-devel] [PATCH 2/2] avcodec: add bink2 video decoder

2019-04-06 Thread Peter Ross
lru[0], lru[1]); > +break; > +case 2: > +val = lru[3]; > +FFSWAP(int, lru[2], lru[3]); > +break; > +case 3: > +val = lru[2]; > +FFSWAP(int, lru[1], lru[2]); > +break; > +} cases 1-3 could be collapsed. >

Re: [FFmpeg-devel] [PATCH 2/2] avcodec: add bink2 video decoder

2019-04-07 Thread Peter Ross
On Sun, Apr 07, 2019 at 10:00:09AM +0200, Paul B Mahol wrote: > On 4/7/19, Peter Ross wrote: > > On Wed, Mar 27, 2019 at 09:21:47PM +0100, Paul B Mahol wrote: > >> Signed-off-by: Paul B Mahol > >> --- > >> Missing deblocking. > >> --- > >&

Re: [FFmpeg-devel] [PATCH] libavcodec/libdav1d: add libdav1d_get_format method to call ff_get_format

2019-04-11 Thread Peter F
> format of any kind. > Please elaborate what exactly this is trying to achieve. Can you elaborate on how to use ffmpeg's API properly as a client to decide if a decoder is a SW decoder and therefore howto properly setup (multi-)threading, especially it cannot be changed once initial

Re: [FFmpeg-devel] [DECISION] Project policy on closed source components

2019-05-03 Thread Peter Ross
Should patches using closed source libraries which are not considered > >> "System Libraries" according to the GPL be rejected? > > > > Yes, yes, yes. > > Yes Yes. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signa

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/jvdec: Use ff_get_buffer() when the content is not reused

2019-05-03 Thread Peter Ross
/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer > --- > libavcodec/jvdec.c | 10 -- > 1 file changed, 8 insertions(+), 2 deletions(-) > looks good. please apply. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) sign

Re: [FFmpeg-devel] [PATCH 3/6] lavc/bink: Remove the dead code block

2019-05-10 Thread Peter Ross
C_RUN])) < 0) > return ret; > > -if (by == bh) > -break; > dst = frame->data[plane_idx] + 8*by*stride; > prev = (c->last->data[plane_idx] ? c->last->data[plane_idx] >

[FFmpeg-devel] [PATCH 1/2] VP4 video decoder

2019-05-11 Thread Peter Ross
_LOSSY, +}, { .id= AV_CODEC_ID_Y41P, .type = AVMEDIA_TYPE_VIDEO, diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index b248c90413..9084ff33e3 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -1,5 +1,6 @@ /* * Copyright (C) 2003-2004 The FFmpeg project + * Copyrig

[FFmpeg-devel] [PATCH 2/2] avformat/riff: add VP4 fourcc

2019-05-11 Thread Peter Ross
MKTAG('V', 'P', '4', '0') }, { AV_CODEC_ID_VP5, MKTAG('V', 'P', '5', '0') }, { AV_CODEC_ID_VP6, MKTAG('V', 'P', '6', '0') }, { AV_CODEC_ID

Re: [FFmpeg-devel] [PATCH 1/2] VP4 video decoder

2019-05-13 Thread Peter Ross
On Sun, May 12, 2019 at 09:41:40AM +0200, Paul B Mahol wrote: > On 5/12/19, Peter Ross wrote: > > --- > > i have incorporated all suggestions from the first patch posted jan 2019. > > > > if there's nothing further to change, i will apply it a

Re: [FFmpeg-devel] [PATCH 1/2] VP4 video decoder

2019-05-13 Thread Peter Ross
On Sun, May 12, 2019 at 12:49:03PM +0200, Carl Eugen Hoyos wrote: > Am So., 12. Mai 2019 um 08:12 Uhr schrieb Peter Ross : > > > i have incorporated all suggestions from the first patch posted jan 2019. > > > > if there's nothing further to change, i wi

Re: [FFmpeg-devel] [PATCH 1/2] VP4 video decoder

2019-05-13 Thread Peter Ross
On Sun, May 12, 2019 at 10:20:19AM -0300, James Almer wrote: > On 5/12/2019 3:12 AM, Peter Ross wrote: > > --- > > i have incorporated all suggestions from the first patch posted jan 2019. > > > > if there's nothing further to change, i will apply it a

Re: [FFmpeg-devel] [PATCH 1/2] VP4 video decoder

2019-05-14 Thread Peter Ross
On Sun, May 12, 2019 at 01:24:56PM +0200, Reimar Döffinger wrote: > On 12.05.2019, at 08:12, Peter Ross wrote: > > +static int read_mb_value(GetBitContext *gb) > > +{ > > +int v = 1; > > +int size; > > + > > +do { > > +

[FFmpeg-devel] [PATCHv3] VP4 video decoder

2019-05-16 Thread Peter Ross
ps = AV_CODEC_PROP_LOSSY, +}, /* various PCM "codecs" */ { diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index b248c90413..63920c60bd 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -1,5 +1,6 @@ /* * Copyright (C) 2003-2004 The FFmpeg project + * Copyright

Re: [FFmpeg-devel] [PATCHv3] VP4 video decoder

2019-05-17 Thread Peter Ross
On Thu, May 16, 2019 at 08:52:39PM +0200, Reimar Döffinger wrote: > On Thu, May 16, 2019 at 08:00:55PM +0200, Reimar Döffinger wrote: > > On Thu, May 16, 2019 at 09:35:00PM +1000, Peter Ross wrote: > > > +static int read_mb_value(GetBitContext *gb) > > > +{ > >

Re: [FFmpeg-devel] [PATCHv3] VP4 video decoder

2019-05-17 Thread Peter Ross
On Thu, May 16, 2019 at 10:49:41AM -0300, James Almer wrote: > On 5/16/2019 8:35 AM, Peter Ross wrote: > > --- > > > > what's changed: > > * reordered AV_CODEC_ID_VP4 > > * minor read_mb_values improvement (reproducible 0.5% speedup) > > * configure/Mak

Re: [FFmpeg-devel] [PATCHv3] VP4 video decoder

2019-05-19 Thread Peter Ross
On Fri, May 17, 2019 at 08:13:51PM +0200, Reimar Döffinger wrote: > On Fri, May 17, 2019 at 08:09:45PM +1000, Peter Ross wrote: > > ah, i see what you did there! it works perfectly, just missing > > UPDATE_CACHE at the start and in the loop. > > > > test results on i

[FFmpeg-devel] [PATCHv4] VP4 video decoder

2019-05-21 Thread Peter Ross
c90413..5fe2c2477c 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -1,5 +1,6 @@ /* * Copyright (C) 2003-2004 The FFmpeg project + * Copyright (C) 2019 Peter Ross * * This file is part of FFmpeg. * @@ -20,7 +21,7 @@ /** * @file - * On2 VP3 Video Decoder + * On2 VP3/VP4 Vid

Re: [FFmpeg-devel] [PATCHv4] VP4 video decoder

2019-05-23 Thread Peter Ross
IG_VP4_DECODER and make it part of the vp3 decoder. > > Wasn't this explicitly requested in an earlier review? > (And it is common within FFmpeg) i'll leave the ifdefs inplace. lynne has a point though, disabling vp4 only reduces the final ffmpeg binary by 25 kilobytes. -- Pete

Re: [FFmpeg-devel] [PATCHv4] VP4 video decoder

2019-05-23 Thread Peter Ross
On Tue, May 21, 2019 at 08:42:17PM +0200, Carl Eugen Hoyos wrote: > Am Di., 21. Mai 2019 um 09:45 Uhr schrieb Peter Ross : > > > diff --git a/configure b/configure > > index 9b4305cf0d..61eb774116 100755 > > --- a/configure > > +++ b/configure > > @@ -2825,

Re: [FFmpeg-devel] [PATCHv4] VP4 video decoder

2019-05-23 Thread Peter Ross
ock_count never exceeds (255 * 255 * 3/2 = 97537). i this kind of check will suffice and speed up fuzzing tests. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-deve

Re: [FFmpeg-devel] [PATCHv4] VP4 video decoder

2019-05-23 Thread Peter Ross
ing is equivalent: > ((a + (a >> 31)) >> b) - (a >> 31) > Not certain it will be fewer instructions, > but it is branchless. > On some ISAs the simple > a / (1 << b) this is best, and the compiler can decode. thanks. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2

Re: [FFmpeg-devel] [PATCHv4] VP4 video decoder

2019-05-23 Thread Peter Ross
On Tue, May 21, 2019 at 11:34:34AM +0200, Tomas Härdin wrote: > tis 2019-05-21 klockan 17:44 +1000 skrev Peter Ross: > > --- > > > > what's changed: > > * apply #if CONFIG_VP4_DECODER around large vp4 code blocks > > * improved vp4_read_mb_value thanks

Re: [FFmpeg-devel] [PATCHv4] VP4 video decoder

2019-05-23 Thread Peter Ross
On Tue, May 21, 2019 at 09:30:54PM +0200, Reimar Döffinger wrote: > On Tue, May 21, 2019 at 05:44:20PM +1000, Peter Ross wrote: > > +if (bits < 0x100) { > > +skip_bits(gb, 1); > > +} else if (bits < 0x180) { > > +skip

[FFmpeg-devel] [PATCH] avcodec/vp3data: combine eob_run_base and eob_run_get_bits tables

2019-05-24 Thread Peter Ross
, 0}, {4, 2}, {8, 3}, {16, 4}, {0, 12} }; static const uint8_t zero_run_base[32] = { -- 2.20.1 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.

Re: [FFmpeg-devel] [PATCH v4] avformat/ifv: added support for ifv cctv files

2019-05-25 Thread Peter Ross
; +return 0; > > +} the audio-present and no-audio-present cases are almost identical. could easily be combined. this perhaps a style issue, but why have nb_new_a/vframes. the bits can be read and incremented one line, > > +} > > + > > +if (!e_next) return A

Re: [FFmpeg-devel] [PATCH] avcodec/vp3data: combine eob_run_base and eob_run_get_bits tables

2019-05-27 Thread Peter Ross
On Sun, May 26, 2019 at 09:27:55PM +0200, Reimar Döffinger wrote: > On Sat, May 25, 2019 at 12:04:49PM +1000, Peter Ross wrote: > > --- > > This provides a small readability improvement. > > I observe no performance change on x86_64 or arm6. > > Looks good to me,

[FFmpeg-devel] [PATCHv5 1/2] avcodec/vp3: spin off get_eob_run and get_coeff coeff functions

2019-06-07 Thread Peter Ross
eff, zero_run); -- 2.20.1 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, vis

[FFmpeg-devel] [PATCHv5 2/2] VP4 video decoder

2019-06-07 Thread Peter Ross
ecs" */ { diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 65aa0f353c..08a2e0d5e9 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -1,5 +1,6 @@ /* * Copyright (C) 2003-2004 The FFmpeg project + * Copyright (C) 2019 Peter Ross * * This file is part of FFmpeg. * @@ -20,7

Re: [FFmpeg-devel] [PATCHv5 2/2] VP4 video decoder

2019-06-08 Thread Peter Ross
On Sat, Jun 08, 2019 at 08:49:15AM +0200, Reimar Döffinger wrote: > > > On 08.06.2019, at 03:08, Peter Ross wrote: > > > --- > > comments against v4 patch addressed. thanks. > > > > +#if CONFIG_VP4_DECODER > > +static int vp4_get_mb_co

Re: [FFmpeg-devel] [PATCH v5] avformat/ifv: added support for ifv cctv files

2019-06-09 Thread Peter Ross
nged, 309 insertions(+), 2 deletions(-) > > create mode 100644 libavformat/ifv.c > > > > Is the patch okay now? Can it be merged? i don't have any further comments. recommend commit. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Descripti

Re: [FFmpeg-devel] [PATCH v5] avformat/ifv: added support for ifv cctv files

2019-06-09 Thread Peter Ross
On Sun, Jun 09, 2019 at 09:36:33PM +1000, Peter Ross wrote: > On Mon, Jun 03, 2019 at 04:06:10AM +0530, Swaraj Hota wrote: > > On Sun, May 26, 2019 at 01:46:32AM +0530, Swaraj Hota wrote: > > > Fixes ticket #2956. > > > > > > Signed-off-by: Swaraj Hota &g

[FFmpeg-devel] [PATCHv6] VP4 video decoder

2019-06-09 Thread Peter Ross
b/libavcodec/vp3.c index 65aa0f353c..a6f759ebf5 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -1,5 +1,6 @@ /* * Copyright (C) 2003-2004 The FFmpeg project + * Copyright (C) 2019 Peter Ross * * This file is part of FFmpeg. * @@ -20,7 +21,7 @@ /** * @file - * On2 VP3 Video Decode

Re: [FFmpeg-devel] [PATCH 3/4] avformat/wtvdec: Avoid (32bit signed) sectors

2019-06-13 Thread Peter Ross
VFormatContext *s, int mode, > int64_t seekts, int *len_p > static int read_header(AVFormatContext *s) > { > WtvContext *wtv = s->priv_data; > -int root_sector, root_size; > +unsigned root_sector; > +int root_size; > uint8_t root[WTV_SECTOR_SIZE]; >

Re: [FFmpeg-devel] [PATCH 4/5] avcodec/bink: Reorder operations in init to avoid memleak on error

2019-06-15 Thread Peter Ross
mt = c->has_alpha ? AV_PIX_FMT_YUVA420P : AV_PIX_FMT_YUV420P; > avctx->color_range = c->version == 'k' ? AVCOL_RANGE_JPEG : > AVCOL_RANGE_MPEG; > > -- > 2.21.0 lgtm. please apply. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description:

Re: [FFmpeg-devel] [PATCH v6] avformat/ifv: added support for ifv cctv files

2019-06-15 Thread Peter Ross
ush. can you do that? if this for gsoc2019, does it first need blessing from mentor? otherwise i will push in a couple of days. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signature ___ ffmpeg-devel mai

Re: [FFmpeg-devel] [PATCH v6] avformat/ifv: added support for ifv cctv files

2019-06-17 Thread Peter Ross
On Sun, Jun 16, 2019 at 07:19:54PM +0530, Swaraj Hota wrote: > On Sun, Jun 16, 2019 at 2:12 PM Paul B Mahol wrote: > > > On 6/16/19, Swaraj Hota wrote: > > > On Sun 16 Jun, 2019, 8:24 AM Peter Ross, wrote: > > > > > >> On Mon, Jun 10, 2019 at 09:25:27A

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/iff: Check bpp for validity

2019-06-19 Thread Peter Ross
if (avctx->codec_tag == MKTAG('R', 'G', 'B', '8')) { > avctx->pix_fmt = AV_PIX_FMT_RGB32; > } else if (avctx->codec_tag == MKTAG('R', 'G', 'B', 'N')) { > -- > 2.21.0

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/binkdsp: Fix integer overflows in idct

2019-06-19 Thread Peter Ross
= ((A2*a7) >> 11) + b3 - b1; \ > +const int b1 = MUL(A3, a5 + a7); \ > +const int b2 = MUL(A4, a5) - b0 + b1; \ > +const int b3 = MUL(A1, a6 - a4) - b2; \ > +const int b4 = MUL(A2, a7) + b3 - b1; \ > (dest)[d0] = munge(a0+a2 +b0); \ > (dest)[d1] = munge(a1

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/iff: Check bpp for validity

2019-06-19 Thread Peter Ross
On Wed, Jun 19, 2019 at 11:44:36AM +0200, Michael Niedermayer wrote: > On Wed, Jun 19, 2019 at 07:34:19PM +1000, Peter Ross wrote: > > On Wed, Jun 19, 2019 at 01:53:02AM +0200, Michael Niedermayer wrote: > > > Fixes: shift exponent -100663046 is negative > > >

[FFmpeg-devel] [PATCH] vp4: prevent unaligned memory access in loop filter

2019-06-20 Thread Peter Ross
mxext; +c->h_loop_filter = c->v_loop_filter_unaligned = ff_vp3_h_loop_filter_mmxext; } } -- 2.20.1 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signature ___ ffmpeg-devel mailing list f

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/iff: Check ham vs bpp

2019-06-23 Thread Peter Ross
nvalid number of hold bits for > HAM: %u, BPP: %u\n", s->ham, s->bpp); > +s->ham = 0; > +return AVERROR_INVALIDDATA; > +} > +} i am curious why we need to reset ham = 0? otherwise patch okay. patch 1 and 3 okay. -- Pete

[FFmpeg-devel] [PATCH] ifv: populate creation_time

2019-07-01 Thread Peter Ross
;pb, 0x24); + ifv->width = avio_rl16(s->pb); ifv->height = avio_rl16(s->pb); -- 2.20.1 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpe

Re: [FFmpeg-devel] [PATCH 1/6] avcodec/iff: Add "else" to make code look prettier

2019-07-13 Thread Peter Ross
ts for > HAM: %u, BPP: %u\n", s->ham, s->bpp); > return AVERROR_INVALIDDATA; > } > -- > 2.22.0 well spotted. please push. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signature ___

Re: [FFmpeg-devel] [PATCH] avcodec: add IMM5 decoder

2019-07-16 Thread Peter Ross
> +} else { > +memcpy(buf + off, IMM5_units[13].bits, IMM5_units[13].len); > +} this all looks pretty good. without trying to nitpick it forever, i suggest replacing the (codec_type==2) blocks. index2 = codec_type2 == 2 ? 12 : 13; offset += IMM5_units[i

Re: [FFmpeg-devel] FFmpeg classification

2019-07-17 Thread Peter Ross
gineered <- more of a numerical scale than categorical variable Whether these classifications are meaningful is entirely up to you. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signature ___ ffmpeg-devel m

Re: [FFmpeg-devel] [PATCH] avformat/ifv: Check for EOF in read_index()

2019-07-18 Thread Peter Ross
68,8 @@ static int read_index(AVFormatContext *s, > } > > for (i = start_index; i < end_index; i++) { > +if (avio_feof(s->pb)) > +return AVERROR_EOF; > pos = avio_rl32(s->pb); > size = avio_rl32(s->pb); > i ap

Re: [FFmpeg-devel] [PATCH] vp3data, mpc8huff: Make some arrays unsigned to prevent overflow

2019-07-20 Thread Peter Ross
t; * (note: same as JPEG) */ > -static const int8_t vp31_intra_c_dequant[64] = { > +static const uint8_t vp31_intra_c_dequant[64] = { > 17, 18, 24, 47, 99, 99, 99, 99, > 18, 21, 26, 66, 99, 99, 99, 99, > 24, 26, 56, 99, 99, 99, 99, 99, > @@

Re: [FFmpeg-devel] [PATCH] avcodec/dstdec: add slice threading support

2019-07-29 Thread Peter Ross
ice threading support > > --- > libavcodec/dstdec.c | 23 +++ > 1 file changed, 15 insertions(+), 8 deletions(-) > approve. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signature _

Re: [FFmpeg-devel] [PATCH] avcodec/dsddec: add slice threading support

2019-07-29 Thread Peter Ross
ice threading support > > --- > libavcodec/dsddec.c | 47 ++--- > 1 file changed, 32 insertions(+), 15 deletions(-) also approve. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signatu

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/vp8: do vp7_fade_frame() later

2019-08-02 Thread Peter Ross
fade_frame(s, alpha, beta)) < 0) > +return ret; > + > return 0; > } > > -- > 2.22.0 > > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/li

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/vp8: do vp7_fade_frame() later

2019-08-02 Thread Peter Ross
On Fri, Aug 02, 2019 at 07:19:11PM +0200, Michael Niedermayer wrote: > On Fri, Aug 02, 2019 at 10:46:04PM +1000, Peter Ross wrote: > > On Thu, Aug 01, 2019 at 11:44:39PM +0200, Michael Niedermayer wrote: > > > Fixes: Timeout (100sec -> 5sec) > > > Fixes: > > &g

Re: [FFmpeg-devel] [PATCH 1/6] avcodec/vp3: Check for end of input in vp4_unpack_vlcs()

2019-08-02 Thread Peter Ross
avcodec/vp3.c > @@ -1403,6 +1403,8 @@ static int vp4_unpack_vlcs(Vp3DecodeContext *s, > GetBitContext *gb, > int eob_run; > > while (!eob_tracker[coeff_i]) { > +if (get_bits_left(gb) < 1) > +return AVERROR_INVALIDDATA; > > token =

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/pictordec: Optimize picmemset() for single plane full lines

2019-08-02 Thread Peter Ross
s->width - xl); > +run -= (s->width + pixels_per_value - 1) / > pixels_per_value; > +xl = s->width; > +} > } > } > run--; > -- > 2.22.0 otherwise patch is good. -- Peter (A907

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/vp56: Consider the alpha start as end of the prior header

2019-08-10 Thread Peter Ross
ze); if (res < 0) return res; if the sample has alpha, remaining_buf_size is reduced in size. can you post the sanple that takes 23s to decode? -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) signature.asc Description: PGP signature _

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/vp56: Consider the alpha start as end of the prior header

2019-08-12 Thread Peter Ross
On Sun, Aug 11, 2019 at 05:02:47PM +0200, Michael Niedermayer wrote: > On Sun, Aug 11, 2019 at 09:29:14AM +1000, Peter Ross wrote: > > On Tue, Aug 06, 2019 at 11:30:02PM +0200, Michael Niedermayer wrote: > > > Fixes: Timeout (23sec -> 71ms) > > > Fixes: > > &g

[FFmpeg-devel] [PATCH] Add assembly support for -fsanitize=hwaddress tagged globals.

2019-08-15 Thread Peter Collingbourne
As of LLVM r368102, Clang will set a pointer tag in bits 56-63 of the address of a global when compiling with -fsanitize=hwaddress. This requires an adjustment to assembly code that takes the address of such globals: the code cannot use the regular R_AARCH64_ADR_PREL_PG_HI21 relocation to refer to

Re: [FFmpeg-devel] [PATCH 5/7] avcodec/anm: Check input size for a frame with just a stop code

2019-08-16 Thread Peter Ross
ibavcodec/anm.c > @@ -119,6 +119,9 @@ static int decode_frame(AVCodecContext *avctx, > uint8_t *dst, *dst_end; > int count, ret; > > +if (buf_size < 7) > +return AVERROR_INVALIDDATA; > + > if ((ret = ff_reget_buffer(avctx, s->frame)) < 0) >

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/vp5/6/8: use vpX_rac_is_end()

2019-08-21 Thread Peter Ross
row_no_filter(AVCodecContext *avctx, void > td->mv_bounds.mv_max.x = ((s->mb_width - 1) << 6) + MARGIN; > > for (mb_x = 0; mb_x < s->mb_width; mb_x++, mb_xy++, mb++) { > -if (c->end <= c->buffer && c->bits >= 0) > +

Re: [FFmpeg-devel] [PATCH] Add assembly support for -fsanitize=hwaddress tagged globals.

2019-08-21 Thread Peter Collingbourne
On Thu, Aug 15, 2019 at 11:00 AM Peter Collingbourne wrote: > > As of LLVM r368102, Clang will set a pointer tag in bits 56-63 of the > address of a global when compiling with -fsanitize=hwaddress. This requires > an adjustment to assembly code that takes the address of such globals

[FFmpeg-devel] [PATCH v2] Add assembly support for -fsanitize=hwaddress tagged globals.

2019-08-21 Thread Peter Collingbourne
-fsanitize=hwaddress. Signed-off-by: Peter Collingbourne --- libavutil/aarch64/asm.S | 8 1 file changed, 8 insertions(+) diff --git a/libavutil/aarch64/asm.S b/libavutil/aarch64/asm.S index 5c329430fd..3ac2ba0d52 100644 --- a/libavutil/aarch64/asm.S +++ b/libavutil/aarch64/asm.S

  1   2   3   4   5   6   7   >