Re: [libav-devel] [PATCH] build: Deprecate "fate-rsync" target in favor of "sync-fate-samples"

2013-07-23 Thread Martin Storsjö
On Tue, 23 Jul 2013, Diego Biurrun wrote: On Tue, Jul 23, 2013 at 10:28:25PM +0300, Martin Storsjö wrote: On Tue, 23 Jul 2013, Luca Barbato wrote: Diego Biurrun wrote: On Tue, Jul 23, 2013 at 02:51:23PM +0200, Hendrik Leppkes wrote: On Tue, Jul 23, 2013 at 2:49 PM, Luca Barbato wrote: O

Re: [libav-devel] [PATCH] twinvq: K&R formatting cosmetics

2013-07-23 Thread Vitor Sessak
On Jul 23, 2013 11:37 PM, "Diego Biurrun" wrote: > > --- > > Now with Vitor's comments addressed. One last comment. = (bit_size + 13) / 14; > > -rounded_up = (bit_size + tctx->n_div[i] - 1)/tctx->n_div[i]; > -rounded_down = (bit_size )/tctx->n_div[i]; > -num_r

[libav-devel] [PATCH] vdpau: fix VC-1 interlace mode

2013-07-23 Thread Rémi Denis-Courmont
From: Rainer Hochecker VDPAU expects the bitstream value (0, 2 or 3). libavcodec uses a enum (0, 1 or 2). Signed-off-by: Rémi Denis-Courmont --- libavcodec/vdpau_vc1.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vdpau_vc1.c b/libavcodec/vdpau_vc1.c index 8

Re: [libav-devel] [PATCH 2/2] vdpau: deprecate bitstream buffers within the hardware context

2013-07-23 Thread Luca Barbato
On 07/22/2013 10:08 PM, Rémi Denis-Courmont wrote: > Or should I reuse the same version number for both? Probably we could squash the whole thing in a single commit in the end, thanks for splitting and making easier to review. lu ___ libav-devel maili

Re: [libav-devel] [PATCH 2/2] vdpau: deprecate bitstream buffers within the hardware context

2013-07-23 Thread Rémi Denis-Courmont
Le lundi 22 juillet 2013 23:07:14 Rémi Denis-Courmont a écrit : > The bitstream buffers are now private and freed by libavcodec. For > backward compatibility, the hold bitstream buffer pointer is left NULL > (applications were supposed to av_freep() it). > --- > doc/APIchanges | 3 +++

[libav-devel] [PATCH 1/3] vdpau: remove old-style decoders

2013-07-23 Thread Rémi Denis-Courmont
--- configure | 11 -- libavcodec/allcodecs.c| 6 - libavcodec/error_resilience.c | 1 - libavcodec/h263dec.c | 7 - libavcodec/h264.c | 48 +- libavcodec/mpeg12.c | 1 - libavcodec/mpeg12dec.c| 55 +-- libavcode

[libav-devel] [PATCH 1/2] vdpau: store picture data in picture's rather than codec's context

2013-07-23 Thread Rémi Denis-Courmont
This sanitizes frame threading sane and hides libavcodec<->libvdpau internal buffers from the application. --- libavcodec/Makefile | 2 +- libavcodec/vdpau.c | 33 ++--- libavcodec/vdpau_h264.c | 31 ++- libavcodec/vdpa

Re: [libav-devel] [PATCH] Defer handling of conditions within .rept just as for .irp

2013-07-23 Thread Luca Barbato
On 07/22/2013 06:08 PM, Martin Storsjo wrote: > --- > gas-preprocessor.pl |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl > index a560921..c02e0b6 100755 > --- a/gas-preprocessor.pl > +++ b/gas-preprocessor.pl > @@ -224,7 +224,

[libav-devel] [PATCH] mpeg12: ignore slice threading if hwaccel is active

2013-07-23 Thread Rémi Denis-Courmont
Slice threading does not work with hardware acceleration, as decoding is per-picture. This fixes https://bugzilla.libav.org/show_bug.cgi?id=542 --- libavcodec/mpeg12dec.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.

Re: [libav-devel] [PATCH 1/3] vdpau: remove old-style decoders

2013-07-23 Thread Rémi Denis-Courmont
Screw that. A few more zombie bits to be removed. -- Rémi Denis-Courmont http://www.remlab.net/ ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

[libav-devel] [PATCH 2/3] vdpau: deprecate old codec-specific pixel formats

2013-07-23 Thread Rémi Denis-Courmont
--- doc/APIchanges | 3 +++ libavutil/old_pix_fmts.h | 4 libavutil/pixdesc.c | 2 ++ libavutil/pixfmt.h | 4 libavutil/version.h | 5 - 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index cdfcc09..52672f5 100

[libav-devel] [PATCH 3/3] vdpau: deprecate VDPAU codec capability

2013-07-23 Thread Rémi Denis-Courmont
--- doc/APIchanges | 3 +++ libavcodec/avcodec.h | 2 ++ libavcodec/vdpau.h | 3 ++- libavcodec/version.h | 5 - 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 52672f5..0d87f04 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -1

[libav-devel] [PATCHv2 0/3] Remove old VDPAU codecs

2013-07-23 Thread Rémi Denis-Courmont
Hello, This is basically the same as previous, with vdpau_render_state also marked for removal. configure | 11 - doc/APIchanges|6 libavcodec/allcodecs.c|6 libavcodec/avcodec.h |2 libavcodec/error_resilience.c |

Re: [libav-devel] [PATCH 2/2] When fixing .unreq, don't print one instance immediately

2013-07-23 Thread Martin Storsjö
On Mon, 22 Jul 2013, Luca Barbato wrote: On 07/22/2013 11:35 AM, Martin Storsjo wrote: When the .unreq is part of a .rept, both of them need to go along with each other so that they end up at the right place in the repeated output. Both patches sound ok, we should start collecting small testc

Re: [libav-devel] [PATCH] 4xm: Reject non-multiple of 16 dimension

2013-07-23 Thread Martin Storsjö
On Mon, 22 Jul 2013, Luca Barbato wrote: Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-sta...@libav.org --- libavcodec/4xm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index a4e6965..2c63eb1 100644 --- a/libavcodec/4xm.c +++

[libav-devel] [PATCH] 4xm: Reject non-multiple of 16 dimension

2013-07-23 Thread Luca Barbato
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-sta...@libav.org --- libavcodec/4xm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index a4e6965..2c63eb1 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -807,6 +807,11 @@ st

[libav-devel] [PATCH] avcodec: Add output picture number to AVCodecParserContext.

2013-07-23 Thread Yusuke Nakamura
output_picture_number tells us the output or presentation order and shall be unique within a sequence. This corresponds to H.264/H.265 PicOrderCnt and Dirac picture number. Attached patches support parsing H.264 PicOrderCnt. 0001-avcodec-Add-output-picture-number-to-AVCodecParserCo.patch Descrip

Re: [libav-devel] [PATCH] arm: Mangle external symbols properly in new vfp assembly files

2013-07-23 Thread Kostya Shishkov
On Mon, Jul 22, 2013 at 12:33:22PM +0300, Martin Storsjö wrote: > --- > libavcodec/arm/dcadsp_vfp.S |2 +- > libavcodec/arm/mdct_vfp.S |4 ++-- > libavcodec/arm/synth_filter_vfp.S |2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) looks OK

[libav-devel] [PATCH 2/2] When fixing .unreq, don't print one instance immediately

2013-07-23 Thread Martin Storsjo
When the .unreq is part of a .rept, both of them need to go along with each other so that they end up at the right place in the repeated output. --- gas-preprocessor.pl |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 755d9fd..b

[libav-devel] [PATCH] cosmetics: Add '0' to float constants ending in '.'.

2013-07-23 Thread Diego Biurrun
--- IMO more readable. The '0.' (and friends) notation keeps confusing me. libavcodec/aac_tablegen.h |2 +- libavcodec/aacdec.c |4 ++-- libavcodec/aacps_tablegen.h |2 +- libavcodec/acelp_vectors.c |4 ++-- libavcodec/qcelpdec.c |6 +++--- libavcodec/ra288.

Re: [libav-devel] [PATCH] twinvq: K&R formatting cosmetics

2013-07-23 Thread Diego Biurrun
On Tue, Jul 23, 2013 at 08:00:42PM +0200, Vitor Sessak wrote: > On Tue, Jul 23, 2013 at 2:28 PM, Diego Biurrun wrote: > > > > Now taking the comments from Vitor and Luca into account. > > > > libavcodec/twinvq.c | 584 > > -- > > libavcodec/twinvq

Re: [libav-devel] [PATCH] twinvq: K&R formatting cosmetics

2013-07-23 Thread Luca Barbato
On 07/21/2013 11:34 PM, Diego Biurrun wrote: > On Sat, Jul 20, 2013 at 05:45:50PM +0200, Vitor Sessak wrote: >> On Jul 20, 2013 12:26 AM, "Diego Biurrun" wrote: >>> >>> --- >>> >>> I removed parts of the changes to twinvq_data.h, as adding 4 spaces of >>> indentation to all those tables makes for

Re: [libav-devel] [PATCH] twinvq: K&R formatting cosmetics

2013-07-23 Thread Diego Biurrun
On Sat, Jul 20, 2013 at 05:45:50PM +0200, Vitor Sessak wrote: > On Jul 20, 2013 12:26 AM, "Diego Biurrun" wrote: > > > > --- > > > > I removed parts of the changes to twinvq_data.h, as adding 4 spaces of > > indentation to all those tables makes for a 1.5MB patch. I kid you not .. > > If what yo

Re: [libav-devel] [PATCH 3/3] vdpau: deprecate VDPAU codec capability

2013-07-23 Thread Diego Biurrun
On Sat, Jul 20, 2013 at 01:34:16PM +0300, Rémi Denis-Courmont wrote: > --- a/libavcodec/version.h > +++ b/libavcodec/version.h > @@ -27,7 +27,7 @@ > */ > > #define LIBAVCODEC_VERSION_MAJOR 55 > -#define LIBAVCODEC_VERSION_MINOR 10 > +#define LIBAVCODEC_VERSION_MINOR 11 > #define LIBAVCODEC_VE

Re: [libav-devel] [PATCH] 8bps: Bound-check the input buffer

2013-07-23 Thread Kostya Shishkov
On Mon, Jul 22, 2013 at 11:26:51PM +0200, Luca Barbato wrote: > Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind > CC: libav-sta...@libav.org > --- > libavcodec/8bps.c | 10 +++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/libavcodec/8bps.c b/libavcodec/8bps.

Re: [libav-devel] [PATCH] wtv: permit root table and first sectors to be located beyond 2GB boundary

2013-07-23 Thread Diego Biurrun
On Tue, Jul 23, 2013 at 06:26:36PM +0300, Rémi Denis-Courmont wrote: > Le mardi 23 juillet 2013 17:18:25 Martin Storsjö a écrit : > > --- a/libavformat/wtv.c > > +++ b/libavformat/wtv.c > > @@ -155,7 +155,7 @@ static AVIOContext * wtvfile_open_sector(int > > first_sector, uint64_t length, int WtvFi

Re: [libav-devel] [PATCH] build: Deprecate "fate-rsync" target in favor of "sync-fate-samples"

2013-07-23 Thread Diego Biurrun
On Tue, Jul 23, 2013 at 10:28:25PM +0300, Martin Storsjö wrote: > On Tue, 23 Jul 2013, Luca Barbato wrote: > > >Diego Biurrun wrote: > >>On Tue, Jul 23, 2013 at 02:51:23PM +0200, Hendrik Leppkes wrote: > >>>On Tue, Jul 23, 2013 at 2:49 PM, Luca Barbato > >>wrote: > On 07/23/2013 02:39 PM, Di

Re: [libav-devel] [PATCH] vdpau: fix VC-1 interlace mode

2013-07-23 Thread Luca Barbato
On 07/22/2013 10:40 PM, Rémi Denis-Courmont wrote: > From: Rainer Hochecker > > VDPAU expects the bitstream value (0, 2 or 3). > libavcodec uses a enum (0, 1 or 2). > Ok. ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mail

Re: [libav-devel] [PATCH] alsdec: Clean up error paths

2013-07-23 Thread Justin Ruggles
On 07/12/2013 05:54 PM, Luca Barbato wrote: > if (ht_size > INT32_MAX) > -return -1; > +return AVERROR_INVALIDDATA; This condition isn't technically invalid data (although it would be extremely odd). It's just that our bitstream reader uses int for bit counts. So this is more

Re: [libav-devel] [PATCH] alsdec: Fix the clipping range

2013-07-23 Thread Justin Ruggles
On 07/12/2013 05:10 PM, Luca Barbato wrote: > mcc_weightings is only 32 elements. > > Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind > CC: libav-sta...@libav.org LGTM. Although it might also be nice to log a warning in addition to the clipping. The spec doesn't mention how to handle ou

[libav-devel] [PATCH 2/2] vdpau: deprecate bitstream buffers within the hardware context

2013-07-23 Thread Rémi Denis-Courmont
The bitstream buffers are now private and freed by libavcodec. For backward compatibility, the hold bitstream buffer pointer is left NULL (applications were supposed to av_freep() it). --- doc/APIchanges | 3 +++ libavcodec/vdpau.h | 8 libavcodec/vdpau_internal.h |

Re: [libav-devel] [PATCH] mpeg12: ignore slice threading if hwaccel is active

2013-07-23 Thread Rémi Denis-Courmont
Le lundi 22 juillet 2013 22:00:48 Luca Barbato a écrit : > On 07/22/2013 09:48 PM, Rémi Denis-Courmont wrote: > > Slice threading does not work with hardware acceleration, as decoding > > is per-picture. > > > > This fixes https://bugzilla.libav.org/show_bug.cgi?id=542 > > --- > > > > libavcodec

Re: [libav-devel] [PATCH 1/3] vdpau: remove old-style decoders

2013-07-23 Thread Luca Barbato
On 07/22/2013 10:05 PM, Rémi Denis-Courmont wrote: > --- > configure | 11 -- > libavcodec/allcodecs.c| 6 - > libavcodec/error_resilience.c | 1 - > libavcodec/h263dec.c | 7 - > libavcodec/h264.c | 48 +- > libavcodec/mpeg12.c

Re: [libav-devel] [PATCH] mpeg12: ignore slice threading if hwaccel is active

2013-07-23 Thread Luca Barbato
On 07/22/2013 09:48 PM, Rémi Denis-Courmont wrote: > Slice threading does not work with hardware acceleration, as decoding > is per-picture. > > This fixes https://bugzilla.libav.org/show_bug.cgi?id=542 > --- > libavcodec/mpeg12dec.c |9 ++--- > 1 file changed, 6 insertions(+), 3 deletion

Re: [libav-devel] [PATCH] alsdec: Fix the clipping range

2013-07-23 Thread Luca Barbato
On 07/12/2013 11:10 PM, Luca Barbato wrote: > mcc_weightings is only 32 elements. > > Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind > CC: libav-sta...@libav.org > --- > > Not related to the theoretically negative block_lenght that I'm tracking > back to parse_bs_info. > > I do not ha

[libav-devel] [PATCH 1/3] vdpau: remove old-style decoders

2013-07-23 Thread Rémi Denis-Courmont
--- configure | 11 -- libavcodec/allcodecs.c| 6 - libavcodec/error_resilience.c | 1 - libavcodec/h263dec.c | 6 - libavcodec/h264.c | 47 +- libavcodec/mpeg12dec.c| 54 +-- libavcodec/mpeg4videodec.c| 18 --- libavco

[libav-devel] [PATCH] Defer handling of conditions within .rept just as for .irp

2013-07-23 Thread Martin Storsjo
--- gas-preprocessor.pl |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index a560921..c02e0b6 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -224,7 +224,7 @@ sub parse_line { $current_macro = '';

[libav-devel] [PATCH] avformat: replace av_realloc with av_reallocp when suitable

2013-07-23 Thread Alexandra Khirnova
--- libavformat/asfenc.c |6 +++--- libavformat/avidec.c |2 +- libavformat/avienc.c |4 ++-- libavformat/aviobuf.c|4 ++-- libavformat/bmv.c|5 ++--- libavformat/concat.c |7 +++ libavformat/cu

Re: [libav-devel] [PATCH] avcodec: Add output picture number to AVCodecParserContext.

2013-07-23 Thread Luca Barbato
On 07/22/2013 12:19 PM, Yusuke Nakamura wrote: > output_picture_number tells us the output or presentation order and shall > be unique within a sequence. > This corresponds to H.264/H.265 PicOrderCnt and Dirac picture number. > > Attached patches support parsing H.264 PicOrderCnt. > > Probably

Re: [libav-devel] [PATCH] alsdec: Fix the clipping range

2013-07-23 Thread Luca Barbato
On 07/21/2013 06:56 PM, Justin Ruggles wrote: > On 07/12/2013 05:10 PM, Luca Barbato wrote: >> mcc_weightings is only 32 elements. >> >> Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind >> CC: libav-sta...@libav.org > > LGTM. Although it might also be nice to log a warning in addition to

Re: [libav-devel] [PATCH] 4xm: Reject non-multiple of 16 dimension

2013-07-23 Thread Luca Barbato
On 07/22/2013 01:13 PM, Martin Storsjö wrote: > On Mon, 22 Jul 2013, Luca Barbato wrote: > >> Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind >> CC: libav-sta...@libav.org >> --- >> libavcodec/4xm.c | 5 + >> 1 file changed, 5 insertions(+) >> >> diff --git a/libavcodec/4xm.c b/libavc

Re: [libav-devel] [PATCH 2/2] When fixing .unreq, don't print one instance immediately

2013-07-23 Thread Luca Barbato
On 07/22/2013 11:35 AM, Martin Storsjo wrote: > When the .unreq is part of a .rept, both of them need to go along > with each other so that they end up at the right place in the repeated > output. Both patches sound ok, we should start collecting small testcases =/ lu ___

[libav-devel] [PATCH 1/2] Evaluate expressions in .rept

2013-07-23 Thread Martin Storsjo
--- gas-preprocessor.pl |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 27155d0..755d9fd 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -401,8 +401,6 @@ my @irp_args; my $irp_param; # pass 2: parse .rept a

[libav-devel] [PATCH] arm: Mangle external symbols properly in new vfp assembly files

2013-07-23 Thread Martin Storsjö
--- libavcodec/arm/dcadsp_vfp.S |2 +- libavcodec/arm/mdct_vfp.S |4 ++-- libavcodec/arm/synth_filter_vfp.S |2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/arm/dcadsp_vfp.S b/libavcodec/arm/dcadsp_vfp.S index 6039e87..5892a84 100644 --- a/

Re: [libav-devel] [libav-commits] arm: Add VFP-accelerated version of imdct_half

2013-07-23 Thread Martin Storsjö
On Mon, 22 Jul 2013, Martin Storsjö wrote: Module: libav Branch: master Commit: b63bb251ea6d6ba23295294e37a92625c0192206 Author:Martin Storsjö Committer: Martin Storsjö Date: Fri Jul 19 10:59:17 2013 +0300 arm: Add VFP-accelerated version of imdct_half Before

Re: [libav-devel] [PATCH 10/10] arm: Add VFP-accelerated version of qmf_32_subbands

2013-07-23 Thread Luca Barbato
On 07/21/2013 07:47 PM, Martin Storsjö wrote: > I'd declare this patchset good enough for now and push it soon, unless > there's more comments. You tested a lot and looks fine for me as well. ___ libav-devel mailing list libav-devel@libav.org https://lis

Re: [libav-devel] [PATCH 10/10] arm: Add VFP-accelerated version of qmf_32_subbands

2013-07-23 Thread Martin Storsjö
On Fri, 19 Jul 2013, Martin Storsjö wrote: From: Ben Avison Before After MeanStdDev MeanStdDev Change This function 1323.0 98.0 746.2 60.6 +77.3% Overall15400.0 336.414147.5 288.4+8.9% --- libavcodec/arm/dcadsp_init_ar

Re: [libav-devel] [PATCH] libx264: Define X264_API_IMPORTS on MSVC/ICL

2013-07-23 Thread Luca Barbato
On 07/20/2013 02:50 PM, Derek Buitenhuis wrote: > On 7/19/2013 3:20 PM, Luca Barbato wrote: >> Adding a -DX264_API_IMPORTS=1 would probably make them calmer? > > I'm not terribly fond of spamming this libx264-specific define in our > CPPFLAGS... it seems like a rather messy alternative to a nicely

[libav-devel] [PATCH 0/3] vdpau: remove pre-hwaccel codecs

2013-07-23 Thread Rémi Denis-Courmont
The following changes since commit 6756d98cec7dbeab6d407abc656d06d7ba97fdda: lavfi: filtfmts: use newer avfilter APIs (2013-07-19 12:22:30 +0300) are not available in the git repository at: git://git.libav.org/libav.git up to: vdpau: deprecate VDPAU codec capability (2013-07-20 13:22:51

[libav-devel] [PATCH 3/3] vdpau: deprecate VDPAU codec capability

2013-07-23 Thread Rémi Denis-Courmont
--- doc/APIchanges | 3 +++ libavcodec/avcodec.h | 2 ++ libavcodec/version.h | 5 - 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index 52672f5..0d87f04 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -13,6 +13,9 @@ libavutil: 2012

[libav-devel] [PATCH 2/3] vdpau: deprecate old codec-specific pixel formats

2013-07-23 Thread Rémi Denis-Courmont
--- doc/APIchanges | 3 +++ libavutil/old_pix_fmts.h | 4 libavutil/pixdesc.c | 2 ++ libavutil/pixfmt.h | 4 libavutil/version.h | 5 - 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index cdfcc09..52672f5 100

Re: [libav-devel] [PATCH 2/2] VoxWare MetaSound decoder

2013-07-23 Thread Kostya Shishkov
On Fri, Jul 19, 2013 at 09:29:12PM +0200, Vitor Sessak wrote: > Hello! > > On Fri, Jul 19, 2013 at 9:22 AM, Kostya Shishkov > wrote: > > > --- > > It's good enough for the only file I care about but maybe it's useful for > > the > > others too. > > > > The source can benefit from heavy diegoing (

Re: [libav-devel] [PATCH 2/2] VoxWare MetaSound decoder

2013-07-23 Thread Kostya Shishkov
On Sat, Jul 20, 2013 at 12:17:18AM +0200, Diego Biurrun wrote: > On Fri, Jul 19, 2013 at 09:22:46AM +0200, Kostya Shishkov wrote: > > --- > > It's good enough for the only file I care about but maybe it's useful for > > the > > others too. > > That wouldn't chance to be a movie with vampires, pri

Re: [libav-devel] [PATCH] build: Deprecate "fate-rsync" target in favor of "sync-fate-samples"

2013-07-23 Thread Martin Storsjö
On Tue, 23 Jul 2013, Luca Barbato wrote: Diego Biurrun wrote: On Tue, Jul 23, 2013 at 02:51:23PM +0200, Hendrik Leppkes wrote: On Tue, Jul 23, 2013 at 2:49 PM, Luca Barbato wrote: On 07/23/2013 02:39 PM, Diego Biurrun wrote: This allows excluding the sync-fate-samples target from conditio

[libav-devel] [PATCH] avcodec: replace av_realloc with av_reallocp when suitable

2013-07-23 Thread Alexandra Khirnova
--- libavcodec/avpacket.c |3 +-- libavcodec/binkaudio.c|5 ++--- libavcodec/bitstream.c|2 +- libavcodec/flashsv.c | 11 +++ libavcodec/g2meet.c |6 ++ libavcodec/h264_mp4toannexb_bsf.c | 15 ---

Re: [libav-devel] [PATCH] avcodec: Add output picture number to AVCodecParserContext.

2013-07-23 Thread Yusuke Nakamura
2013/7/22 Luca Barbato > On 07/22/2013 12:19 PM, Yusuke Nakamura wrote: > > output_picture_number tells us the output or presentation order and shall > > be unique within a sequence. > > This corresponds to H.264/H.265 PicOrderCnt and Dirac picture number. > > > > Attached patches support parsing

Re: [libav-devel] [PATCH] twinvq: K&R formatting cosmetics

2013-07-23 Thread Vitor Sessak
On Tue, Jul 23, 2013 at 2:28 PM, Diego Biurrun wrote: > --- > > Now taking the comments from Vitor and Luca into account. > > libavcodec/twinvq.c | 584 > -- > libavcodec/twinvq_data.h | 325 +- > 2 files changed, 474 ins

Re: [libav-devel] [PATCH 2/2] 8bps: Make the bound-checks consistent

2013-07-23 Thread Kostya Shishkov
On Tue, Jul 23, 2013 at 02:19:31PM +0200, Luca Barbato wrote: > --- > libavcodec/8bps.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/8bps.c b/libavcodec/8bps.c > index dbe1f22..ad1266f 100644 > --- a/libavcodec/8bps.c > +++ b/libavcodec/8bps.c > @@ -105,

[libav-devel] [PATCH] avcodec: replace av_realloc with av_reallocp when suitable

2013-07-23 Thread Alexandra Khirnova
--- libavcodec/avpacket.c |3 +-- libavcodec/binkaudio.c|5 ++--- libavcodec/bitstream.c|2 +- libavcodec/flashsv.c | 11 +++ libavcodec/g2meet.c | 12 libavcodec/h264_mp4toannexb_bsf.c | 15 -

Re: [libav-devel] [PATCH 1/2] 8bps: Bound-check the input buffer

2013-07-23 Thread Kostya Shishkov
On Tue, Jul 23, 2013 at 02:19:30PM +0200, Luca Barbato wrote: > Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind > CC: libav-sta...@libav.org > --- > libavcodec/8bps.c | 10 +++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/libavcodec/8bps.c b/libavcodec/8bps.

Re: [libav-devel] [PATCH] wtv: permit root table and first sectors to be located beyond 2GB boundary

2013-07-23 Thread Martin Storsjö
On Tue, 23 Jul 2013, Rémi Denis-Courmont wrote: Le mardi 23 juillet 2013 17:18:25 Martin Storsjö a écrit : From: Peter Ross --- libavformat/wtv.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/wtv.c b/libavformat/wtv.c index 8b92746..494af3b 100644 ---

Re: [libav-devel] [PATCH] wtv: permit root table and first sectors to be located beyond 2GB boundary

2013-07-23 Thread Martin Storsjö
On Tue, 23 Jul 2013, Diego Biurrun wrote: On Tue, Jul 23, 2013 at 05:18:25PM +0300, Martin Storsjö wrote: --- a/libavformat/wtv.c +++ b/libavformat/wtv.c @@ -155,7 +155,7 @@ static AVIOContext * wtvfile_open_sector(int first_sector, uint64_t length, int -if (avio_seek(s->pb, first_sector

[libav-devel] [PATCH 1/2] avformat: av_realloc replaced with av_reallocp when suitable

2013-07-23 Thread Alexandra Khirnova
--- libavformat/asfenc.c |6 +++--- libavformat/avidec.c |2 +- libavformat/avienc.c |4 ++-- libavformat/aviobuf.c|4 ++-- libavformat/bmv.c|5 ++--- libavformat/concat.c |7 +++ libavformat/cu

[libav-devel] [PATCH 2/2] cutils: make ff_dynarray_add return error code

2013-07-23 Thread Alexandra Khirnova
--- libavformat/cutils.c |7 +-- libavformat/internal.h |8 +--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/libavformat/cutils.c b/libavformat/cutils.c index b6f4303..ebcc751 100644 --- a/libavformat/cutils.c +++ b/libavformat/cutils.c @@ -22,7 +22,7 @@ #inc

Re: [libav-devel] [PATCH] wtv: permit root table and first sectors to be located beyond 2GB boundary

2013-07-23 Thread Rémi Denis-Courmont
Le mardi 23 juillet 2013 17:18:25 Martin Storsjö a écrit : > From: Peter Ross > > --- > libavformat/wtv.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavformat/wtv.c b/libavformat/wtv.c > index 8b92746..494af3b 100644 > --- a/libavformat/wtv.c > +++ b/libav

Re: [libav-devel] [PATCH] wtv: permit root table and first sectors to be located beyond 2GB boundary

2013-07-23 Thread Diego Biurrun
On Tue, Jul 23, 2013 at 05:18:25PM +0300, Martin Storsjö wrote: > --- a/libavformat/wtv.c > +++ b/libavformat/wtv.c > @@ -155,7 +155,7 @@ static AVIOContext * wtvfile_open_sector(int > first_sector, uint64_t length, int > > -if (avio_seek(s->pb, first_sector << WTV_SECTOR_BITS, SEEK_SET) < 0

Re: [libav-devel] [PATCH] build: Deprecate "fate-rsync" target in favor of "sync-fate-samples"

2013-07-23 Thread Luca Barbato
Diego Biurrun wrote: >On Tue, Jul 23, 2013 at 02:51:23PM +0200, Hendrik Leppkes wrote: >> On Tue, Jul 23, 2013 at 2:49 PM, Luca Barbato >wrote: >> > On 07/23/2013 02:39 PM, Diego Biurrun wrote: >> >> This allows excluding the sync-fate-samples target from conditions >that >> >> match all other fa

[libav-devel] [PATCH] wtv: permit root table and first sectors to be located beyond 2GB boundary

2013-07-23 Thread Martin Storsjö
From: Peter Ross --- libavformat/wtv.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/wtv.c b/libavformat/wtv.c index 8b92746..494af3b 100644 --- a/libavformat/wtv.c +++ b/libavformat/wtv.c @@ -155,7 +155,7 @@ static AVIOContext * wtvfile_open_sector(int f

Re: [libav-devel] [PATCH] build: Deprecate "fate-rsync" target in favor of "sync-fate-samples"

2013-07-23 Thread Diego Biurrun
On Tue, Jul 23, 2013 at 02:51:23PM +0200, Hendrik Leppkes wrote: > On Tue, Jul 23, 2013 at 2:49 PM, Luca Barbato wrote: > > On 07/23/2013 02:39 PM, Diego Biurrun wrote: > >> This allows excluding the sync-fate-samples target from conditions that > >> match all other fate-related targets. > >> ---

Re: [libav-devel] [PATCH] build: Deprecate "fate-rsync" target in favor of "sync-fate-samples"

2013-07-23 Thread Hendrik Leppkes
On Tue, Jul 23, 2013 at 2:49 PM, Luca Barbato wrote: > On 07/23/2013 02:39 PM, Diego Biurrun wrote: >> This allows excluding the sync-fate-samples target from conditions that >> match all other fate-related targets. >> --- >> >> Now with a name that is really better than its predecessor. >> > > No

Re: [libav-devel] [PATCH] build: Deprecate "fate-rsync" target in favor of "sync-fate-samples"

2013-07-23 Thread Luca Barbato
On 07/23/2013 02:39 PM, Diego Biurrun wrote: > This allows excluding the sync-fate-samples target from conditions that > match all other fate-related targets. > --- > > Now with a name that is really better than its predecessor. > No, it is longer, easier to mistype. Just filter out fate-rsync

Re: [libav-devel] [PATCH] Only replace symbols with their corresponding value if the symbol is defined

2013-07-23 Thread Derek Buitenhuis
On 7/23/2013 8:21 AM, Martin Storsjö wrote: > Hmm, nifty. Do you prefer this over the other solution (where hex literals > are converted into decimals numbers) when I've corrected it like this? This one seems less ugly to me, but that's just my opinion. :) - Derek ___

[libav-devel] [PATCH] build: Deprecate "fate-rsync" target in favor of "sync-fate-samples"

2013-07-23 Thread Diego Biurrun
This allows excluding the sync-fate-samples target from conditions that match all other fate-related targets. --- Now with a name that is really better than its predecessor. doc/fate.texi |4 ++-- doc/git-howto.texi |2 +- tests/Makefile |9 ++--- 3 files changed, 9 inse

Re: [libav-devel] [PATCH] twinvq: K&R formatting cosmetics

2013-07-23 Thread Luca Barbato
On 07/23/2013 02:28 PM, Diego Biurrun wrote: > --- > > Now taking the comments from Vitor and Luca into account. > > libavcodec/twinvq.c | 584 > -- > libavcodec/twinvq_data.h | 325 +- > 2 files changed, 474 insertions(

Re: [libav-devel] [PATCH] Only replace symbols with their corresponding value if the symbol is defined

2013-07-23 Thread Martin Storsjö
On Tue, 23 Jul 2013, Derek Buitenhuis wrote: On 7/23/2013 6:32 AM, Martin Storsjö wrote: Yes, which I also mentioned in the annotation "This is pretty ugly, and can only match one single symbol per line.". Any suggestions on a better way of doing it? I'm pretty sure Perl can do something like

Re: [libav-devel] [PATCH] build: Deprecate "fate-rsync" target in favor of "samples-rsync"

2013-07-23 Thread Hendrik Leppkes
On Tue, Jul 23, 2013 at 2:15 PM, Diego Biurrun wrote: > On Tue, Jul 23, 2013 at 01:54:25PM +0200, Hendrik Leppkes wrote: >> On Tue, Jul 23, 2013 at 1:52 PM, Diego Biurrun wrote: >> > On Sat, Jul 20, 2013 at 12:50:05AM +0200, Diego Biurrun wrote: >> >> This allows excluding the samples-rsync targe

[libav-devel] [PATCH 1/2] 8bps: Bound-check the input buffer

2013-07-23 Thread Luca Barbato
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-sta...@libav.org --- libavcodec/8bps.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libavcodec/8bps.c b/libavcodec/8bps.c index fcb7b2b..dbe1f22 100644 --- a/libavcodec/8bps.c +++ b/libavcodec/8bp

[libav-devel] [PATCH 2/2] 8bps: Make the bound-checks consistent

2013-07-23 Thread Luca Barbato
--- libavcodec/8bps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/8bps.c b/libavcodec/8bps.c index dbe1f22..ad1266f 100644 --- a/libavcodec/8bps.c +++ b/libavcodec/8bps.c @@ -105,7 +105,7 @@ static int decode_frame(AVCodecContext *avctx, void *data,

Re: [libav-devel] [PATCH] build: Deprecate "fate-rsync" target in favor of "samples-rsync"

2013-07-23 Thread Diego Biurrun
On Tue, Jul 23, 2013 at 01:54:25PM +0200, Hendrik Leppkes wrote: > On Tue, Jul 23, 2013 at 1:52 PM, Diego Biurrun wrote: > > On Sat, Jul 20, 2013 at 12:50:05AM +0200, Diego Biurrun wrote: > >> This allows excluding the samples-rsync target from conditions that > >> atch all other fate-related targ

Re: [libav-devel] [PATCH] build: Deprecate "fate-rsync" target in favor of "samples-rsync"

2013-07-23 Thread Luca Barbato
On 07/23/2013 01:54 PM, Hendrik Leppkes wrote: > On Tue, Jul 23, 2013 at 1:52 PM, Diego Biurrun wrote: >> On Sat, Jul 20, 2013 at 12:50:05AM +0200, Diego Biurrun wrote: >>> This allows excluding the samples-rsync target from conditions that >>> atch all other fate-related targets. >>> --- >>> >>>

Re: [libav-devel] [PATCH] build: Deprecate "fate-rsync" target in favor of "samples-rsync"

2013-07-23 Thread Hendrik Leppkes
On Tue, Jul 23, 2013 at 1:52 PM, Diego Biurrun wrote: > On Sat, Jul 20, 2013 at 12:50:05AM +0200, Diego Biurrun wrote: >> This allows excluding the samples-rsync target from conditions that >> atch all other fate-related targets. >> --- >> >> This now deprecates the target instead of dropping it.

Re: [libav-devel] [PATCH] build: Deprecate "fate-rsync" target in favor of "samples-rsync"

2013-07-23 Thread Diego Biurrun
On Sat, Jul 20, 2013 at 12:50:05AM +0200, Diego Biurrun wrote: > This allows excluding the samples-rsync target from conditions that > atch all other fate-related targets. > --- > > This now deprecates the target instead of dropping it. The second patch > remains simple and fate-rsync stays in pl

Re: [libav-devel] [PATCH 4/4] Handle .set when expanding repetitions as well

2013-07-23 Thread Derek Buitenhuis
On 7/23/2013 4:31 AM, Martin Storsjo wrote: > --- > gas-preprocessor.pl |3 +++ > 1 file changed, 3 insertions(+) OK. - Derek ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH 3/4] Refactor handling of .set to a reusable function

2013-07-23 Thread Derek Buitenhuis
On 7/23/2013 4:31 AM, Martin Storsjo wrote: > +my $line = @_[0]; Should be $_[0]. Otherwise, LGTM. - Derek ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH 2/4] Handle if conditions in .rept

2013-07-23 Thread Derek Buitenhuis
On 7/23/2013 4:31 AM, Martin Storsjo wrote: > --- > gas-preprocessor.pl |6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) >From the patch context, it looks reasonable. - Derek ___ libav-devel mailing list libav-devel@libav.org https://li

Re: [libav-devel] [PATCH 1/4] Explicitly check the $line variable in all conditions in parse_if_line

2013-07-23 Thread Derek Buitenhuis
On 7/23/2013 4:31 AM, Martin Storsjo wrote: > This avoids the hidden assumption that the parameter passed is > also available in $_. > --- > gas-preprocessor.pl |5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Less implicitness is good. LGTM. - Derek __

Re: [libav-devel] [PATCH] Only replace symbols with their corresponding value if the symbol is defined

2013-07-23 Thread Derek Buitenhuis
On 7/23/2013 6:32 AM, Martin Storsjö wrote: > Yes, which I also mentioned in the annotation "This is pretty ugly, and > can only match one single symbol per line.". Any suggestions on a better > way of doing it? I'm pretty sure Perl can do something like: while ($expr =~ /([A-Za-z._][A-Za-z

Re: [libav-devel] [PATCH] Replace hex constants with their decimal value when evaluating expressions

2013-07-23 Thread Derek Buitenhuis
On 7/23/2013 6:33 AM, Martin Storsjö wrote: > We don't do this on all the asm source, only on certain subexpressions > that we need to evaluate (for parameters to .set, .if, .rept). So I think > it should be pretty safe. OK. - Derek ___ libav-devel ma

Re: [libav-devel] [PATCH] Replace hex constants with their decimal value when evaluating expressions

2013-07-23 Thread Martin Storsjö
On Tue, 23 Jul 2013, Derek Buitenhuis wrote: On 7/23/2013 4:38 AM, Martin Storsjo wrote: +while ($expr =~ /(0x[A-Fa-f0-9]*)/) { Is it wise it wise to match '0x'? Thogh, I guess that would be invalid code anyway. We don't do this on all the asm source, only on certain subexpressions tha

Re: [libav-devel] [PATCH] Only replace symbols with their corresponding value if the symbol is defined

2013-07-23 Thread Martin Storsjö
On Tue, 23 Jul 2013, Derek Buitenhuis wrote: On 7/23/2013 4:38 AM, Martin Storsjo wrote: -$expr =~ s/([A-Za-z._][A-Za-z0-9._]*)/$symbols{$1}/g; +if ($expr =~ /([A-Za-z._][A-Za-z0-9._]*)/) { +my $sym = $1; +$expr =~ s/$sym/$symbols{$sym}/ if defined $symbols{$sym}; I th

Re: [libav-devel] [PATCH] Only replace symbols with their corresponding value if the symbol is defined

2013-07-23 Thread Derek Buitenhuis
On 7/23/2013 4:38 AM, Martin Storsjo wrote: > -$expr =~ s/([A-Za-z._][A-Za-z0-9._]*)/$symbols{$1}/g; > +if ($expr =~ /([A-Za-z._][A-Za-z0-9._]*)/) { > +my $sym = $1; > +$expr =~ s/$sym/$symbols{$sym}/ if defined $symbols{$sym}; I think you lost the function of /g? - Derek

Re: [libav-devel] [PATCH] Replace hex constants with their decimal value when evaluating expressions

2013-07-23 Thread Derek Buitenhuis
On 7/23/2013 4:38 AM, Martin Storsjo wrote: > +while ($expr =~ /(0x[A-Fa-f0-9]*)/) { Is it wise it wise to match '0x'? Thogh, I guess that would be invalid code anyway. - Derek ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.o

[libav-devel] [PATCH] Only replace symbols with their corresponding value if the symbol is defined

2013-07-23 Thread Martin Storsjo
This avoids replacing a substring like x0123 in hex constants with an empty string. --- This is pretty ugly, and can only match one single symbol per line. Better solutions are welcome. This is an alternative to first matching and replacing all hex constants. --- gas-preprocessor.pl |5 -

[libav-devel] [PATCH] Replace hex constants with their decimal value when evaluating expressions

2013-07-23 Thread Martin Storsjo
Otherwise the substring x0123 will be matched as a symbol name and replaced with the value of that symbol. --- This fixes evaluating expressions like "0x80808080 >> 16", where x80808080 is interpreted as a symbol (with no value). This is encountered when building e.g. vp8dsp_armv6.o. (This has norm

[libav-devel] [PATCH 2/4] Handle if conditions in .rept

2013-07-23 Thread Martin Storsjo
--- gas-preprocessor.pl |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 7da7c33..8e1c13f 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -224,7 +224,7 @@ sub parse_line { $current_macro = '';

[libav-devel] [PATCH 1/4] Explicitly check the $line variable in all conditions in parse_if_line

2013-07-23 Thread Martin Storsjo
This avoids the hidden assumption that the parameter passed is also available in $_. --- gas-preprocessor.pl |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index a560921..7da7c33 100755 --- a/gas-preprocessor.pl +++ b/gas-prepr

[libav-devel] [PATCH 3/4] Refactor handling of .set to a reusable function

2013-07-23 Thread Martin Storsjo
--- gas-preprocessor.pl | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 8e1c13f..2602383 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -260,6 +260,13 @@ sub parse_line { } } +sub handle_set {

[libav-devel] [PATCH 4/4] Handle .set when expanding repetitions as well

2013-07-23 Thread Martin Storsjo
--- gas-preprocessor.pl |3 +++ 1 file changed, 3 insertions(+) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 2602383..98b9360 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -519,6 +519,7 @@ foreach my $line (@pass1_lines) { $line =~ s/\\$irp