[libav-devel] [PATCH] configure: When disabling a library disable all the related components

2015-10-04 Thread Luca Barbato
--- configure | 38 +- 1 file changed, 33 insertions(+), 5 deletions(-) Seems working as supposed for explicit components, I'll send another patch to address the fact it would try to build avformat if you disable avcodec since it should not. diff --git

Re: [libav-devel] [PATCH] checkasm: Fix compilation with --disable-avcodec

2015-10-04 Thread Luca Barbato
On 04/10/15 21:52, Henrik Gramner wrote: > On Sun, Oct 4, 2015 at 8:39 PM, Luca Barbato wrote: >> Alternatively we might make sure if avcodec is disabled all its >> components are as well. >> >> might simplify a lot the code... > > Yes, that's indeed a solid approach as well.

[libav-devel] [PATCH 02/13] lavc: add stream-global packet side data

2015-10-04 Thread Anton Khirnov
This is similar to what is done for AVStream. --- libavcodec/avcodec.h | 10 ++ libavcodec/utils.c | 9 - 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 52fc2ee..98b0d8f 100644 --- a/libavcodec/avcodec.h +++

[libav-devel] [PATCH 08/13] mpegvideo_enc: export CPB props side data

2015-10-04 Thread Anton Khirnov
--- libavcodec/mpegvideo_enc.c | 9 + 1 file changed, 9 insertions(+) diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index e5ff3ed..0d3fc87 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -241,6 +241,7 @@ static void

[libav-devel] [PATCH 06/13] libvpxenc: export CPB props side data

2015-10-04 Thread Anton Khirnov
--- libavcodec/libvpxenc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 563117f..bff83ac 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -220,6 +220,7 @@ static av_cold int vpx_init(AVCodecContext

[libav-devel] [PATCH 07/13] libx264: export CPB props side data

2015-10-04 Thread Anton Khirnov
--- libavcodec/libx264.c | 8 1 file changed, 8 insertions(+) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 50de007..e54fac8 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -351,6 +351,7 @@ static int convert_pix_fmt(enum AVPixelFormat pix_fmt) static

[libav-devel] [PATCH 10/13] nvenc: export CPB props side data

2015-10-04 Thread Anton Khirnov
--- libavcodec/nvenc.c | 9 + 1 file changed, 9 insertions(+) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 3f19ed0..2035480 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -559,6 +559,7 @@ static int nvenc_setup_encoder(AVCodecContext *avctx) NVENCContext

[libav-devel] [PATCH] dict: Change return type of av_dict_copy()

2015-10-04 Thread Vittorio Giovara
av_dict_set() could return an error, so forward it appropriately. Signed-off-by: Vittorio Giovara --- doc/APIchanges | 4 libavutil/dict.c| 11 --- libavutil/dict.h| 4 +++- libavutil/version.h | 2 +- 4 files changed, 16 insertions(+), 5

[libav-devel] [PATCH 09/13] mpegvideo_enc: export vbv_delay in side data

2015-10-04 Thread Anton Khirnov
Deprecate AVCodecContext.vbv_delay --- libavcodec/avcodec.h | 5 + libavcodec/mpegvideo_enc.c | 13 + libavcodec/version.h | 3 +++ 3 files changed, 21 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 191c580..4f5a155 100644 ---

[libav-devel] [PATCH 13/13] mpegenc: use the CPB props side data

2015-10-04 Thread Anton Khirnov
Do not access the encoder options, since it makes no sense when the AVStream codec context is not the encoding context. --- libavformat/mpegenc.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index

[libav-devel] [PATCH 04/13] lavc: add a packet side data type for VBV-like parameters

2015-10-04 Thread Anton Khirnov
--- libavcodec/avcodec.h | 54 libavcodec/utils.c | 14 ++ 2 files changed, 68 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 98b0d8f..191c580 100644 --- a/libavcodec/avcodec.h +++

[libav-devel] [PATCH 11/13] qsvenc: export CPB props side data

2015-10-04 Thread Anton Khirnov
--- libavcodec/qsvenc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index d6a731f..5301c7b 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -145,6 +145,8 @@ static int init_video_param(AVCodecContext *avctx, QSVEncContext

[libav-devel] [PATCH 03/13] avconv: pass the global codec side data to the muxer

2015-10-04 Thread Anton Khirnov
--- avconv.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/avconv.c b/avconv.c index 75b00f1..a9fa025 100644 --- a/avconv.c +++ b/avconv.c @@ -1617,6 +1617,28 @@ static int init_output_stream(OutputStream *ost, char *error, int error_len)

[libav-devel] [RFC] passing ratecontrol parameters from encoders to muxers

2015-10-04 Thread Anton Khirnov
Hi, one of the few remaining obstacles for TEP2 is the fact that some muxers access the ratecontrol parameters from the AVCodecContext. This patchset attempts to fix that by passing those in a new packet side data type. It's still not fully polished (breaks FATE for now), but comments are most

[libav-devel] [PATCH 01/13] avpacket: add a function for wrapping existing data as side data

2015-10-04 Thread Anton Khirnov
--- libavcodec/avcodec.h | 16 libavcodec/avpacket.c | 38 -- 2 files changed, 44 insertions(+), 10 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 11ae1fc..52fc2ee 100644 --- a/libavcodec/avcodec.h +++

[libav-devel] [PATCH 05/13] libopenh264enc: export CPB props side data

2015-10-04 Thread Anton Khirnov
--- libavcodec/internal.h | 5 + libavcodec/libopenh264enc.c | 9 + libavcodec/utils.c | 26 ++ 3 files changed, 40 insertions(+) diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 500511d..24d28e2 100644 ---

[libav-devel] [PATCH 12/13] movenc: use the CPB props side data

2015-10-04 Thread Anton Khirnov
Do not access the encoder options, since it makes no sense when the AVStream codec context is not the encoding context. --- libavformat/movenc.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index ee2f089..ba07154

[libav-devel] [PATCH] checkasm: Fix compilation with --disable-avcodec

2015-10-04 Thread Henrik Gramner
--- tests/checkasm/checkasm.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c index 9219a83..3ed78b6 100644 --- a/tests/checkasm/checkasm.c +++ b/tests/checkasm/checkasm.c @@ -57,17 +57,19 @@

Re: [libav-devel] [PATCH] checkasm: Fix compilation with --disable-avcodec

2015-10-04 Thread Henrik Gramner
On Sun, Oct 4, 2015 at 8:39 PM, Luca Barbato wrote: > Alternatively we might make sure if avcodec is disabled all its > components are as well. > > might simplify a lot the code... Yes, that's indeed a solid approach as well. Who's volunteering for that though? I don't really

[libav-devel] [PATCH] rawenc: Replace the avpicture with imgutils

2015-10-04 Thread Luca Barbato
Use directly the imgutils functions instead of using the avpicture wrappers. --- libavcodec/rawenc.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c index cc55b3a..60bd0c7 100644 --- a/libavcodec/rawenc.c +++