Re: [FFmpeg-devel] [PATCH 2/2] avcodec/mpegvideo: Check pointer when allocation fail

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 06:25:57PM +0300, Roman Savchenko wrote: --- libavcodec/mpegvideo.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) applied thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB When the tyrant has disposed of foreign

Re: [FFmpeg-devel] [RFC] DXVA2 decoding and FFmpeg

2015-05-28 Thread James Almer
On 28/05/15 2:39 PM, Stefano Sabatini wrote: From f3b4e77dd9dd299aba8f4fa83625d2b61b243c3c Mon Sep 17 00:00:00 2001 From: Stefano Sabatini stefa...@gmail.com Date: Fri, 15 May 2015 18:58:17 +0200 Subject: [PATCH] lavu/imgutils: add av_image_copy_plane_from_uswc() function. This function

Re: [FFmpeg-devel] [PATCH 1/2] avformat/avienc: Correct possible dereference of null

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 06:25:56PM +0300, Roman Savchenko wrote: --- libavformat/avienc.c | 2 ++ 1 file changed, 2 insertions(+) applied thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The misfortune of the wise is better than the prosperity of the

Re: [FFmpeg-devel] [RFC] DXVA2 decoding and FFmpeg

2015-05-28 Thread Stefano Sabatini
On date Monday 2015-05-18 13:26:56 +0200, Stefano Sabatini encoded: On Mon, May 18, 2015 at 1:17 PM, Hendrik Leppkes h.lepp...@gmail.com wrote: On Mon, May 18, 2015 at 12:37 PM, Stefano Sabatini stefa...@gmail.com wrote: [...] I have a first hackish patch, performed some tests

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/mips: Restructure as per avutil/mips/generic_macros_msa.h

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 08:14:42PM +0530, shivraj.pa...@imgtec.com wrote: From: Shivraj Patil shivraj.pa...@imgtec.com This patch modifies HEVC mc MIPS-SIMD optimized code according to improved version of generic macros. Overall, this patch is just upgrading the code with styling changes

[FFmpeg-devel] [PATCH] lavf/tls: Support Secure Transport

2015-05-28 Thread Rodger Combs
--- configure | 14 +- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/avio.c| 4 +- libavformat/tls.h | 2 +- libavformat/tls_securetransport.c | 393

Re: [FFmpeg-devel] [RFC] DXVA2 decoding and FFmpeg

2015-05-28 Thread Hendrik Leppkes
On Thu, May 28, 2015 at 7:39 PM, Stefano Sabatini stefa...@gmail.com wrote: On date Monday 2015-05-18 13:26:56 +0200, Stefano Sabatini encoded: On Mon, May 18, 2015 at 1:17 PM, Hendrik Leppkes h.lepp...@gmail.com wrote: On Mon, May 18, 2015 at 12:37 PM, Stefano Sabatini stefa...@gmail.com

[FFmpeg-devel] [PATCH 1/2] avformat/avienc: Correct possible dereference of null

2015-05-28 Thread Roman Savchenko
--- libavformat/avienc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/avienc.c b/libavformat/avienc.c index fb2cdd2..62d84d5 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -386,6 +386,8 @@ static int avi_write_header(AVFormatContext *s) t =

[FFmpeg-devel] [PATCH 2/2] avcodec/mpegvideo: Check pointer when allocation fail

2015-05-28 Thread Roman Savchenko
--- libavcodec/mpegvideo.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 11d6729..bd47203 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1044,11 +1044,14 @@ do {\ if

Re: [FFmpeg-devel] [PATCH 2/2] dxva2_hevc: re-write reference frame handling

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 06:20:25PM +0200, Hendrik Leppkes wrote: The old logic required and explicit clearing of the lists first and was prone to overflow the DXVA2 struct in some circumstances. --- libavcodec/dxva2_hevc.c | 40 ++-- 1 file changed, 22

Re: [FFmpeg-devel] [PATCH 1/2] dxva2_hevc: fix 32x32 scaling lists

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 06:20:24PM +0200, Hendrik Leppkes wrote: --- libavcodec/dxva2_hevc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) applied thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The real ebay dictionary, page 3 Rare item

Re: [FFmpeg-devel] [PATCH] mov: fix DTS calculation for samples with negative stts duration

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 06:49:02PM +0200, Andreas Cadhalpun wrote: On 28.05.2015 04:29, Michael Niedermayer wrote: On Thu, May 28, 2015 at 12:11:00AM +0200, Andreas Cadhalpun wrote: A negative sample duration is invalid according to the spec, but there are samples that use it for the DTS

[FFmpeg-devel] [PATCH][GSoC] lavf/http: Parse and set HTTP method when listening on HTTP(S)

2015-05-28 Thread Stephan Holljes
Signed-off-by: Stephan Holljes klaxa1...@googlemail.com --- libavformat/http.c | 8 1 file changed, 8 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index 4f6716a..3fad43d 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -556,6 +556,14 @@ static int

Re: [FFmpeg-devel] [PATCH] avcodec: loongson3 optimized mpegvideo dct unquantize and denoise with mmi

2015-05-28 Thread 周晓勇
On Wed, May 27, 2015 at 06:10:31PM +0800, 周晓勇 wrote: From eb476eba51fffd30989917606a9b239f7c67ad26 Mon Sep 17 00:00:00 2001 From: ZhouXiaoyong zhouxiaoy...@loongson.cn Date: Thu, 21 May 2015 16:32:35 +0800 Subject: [PATCH] avcodec: loongson3 optimized mpegvideo dct unquantize

Re: [FFmpeg-devel] [PATCH] WebP native muxer bugfix: frames should have alpha blending off

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 05:52:35PM +, Urvang Joshi wrote: On Wed, May 27, 2015 at 5:33 PM Michael Niedermayer michae...@gmx.at wrote: On Wed, May 27, 2015 at 03:10:05PM -0700, Urvang Joshi wrote: All the frames that the native muxer gets are fully reconstructed frames, wrong

[FFmpeg-devel] [PATCH 1/4] avutil/mips: Restructure of generic macros

2015-05-28 Thread shivraj.patil
From: Shivraj Patil shivraj.pa...@imgtec.com This patch includes restructuring of existing macros and addition of more generic macros. This change was necessary to avoid repeated review comments in remaining patches which we were about to submit. Also this patch reduces number of code lines

Re: [FFmpeg-devel] [PATCH]Use av_codec_get_tag2() in avformat_query_codec()

2015-05-28 Thread wm4
On Thu, 28 May 2015 02:33:08 +0200 Carl Eugen Hoyos ceho...@ag.or.at wrote: Hi! I believe that attached patch - that I don't really know how to test - fixes a theoretical issue with rawvideo. Please review, Carl Eugen Missing commit message (with adequate explanation), wrong patch

[FFmpeg-devel] [PATCH 3/4] avcodec/mips: Disable uni mc optimizations

2015-05-28 Thread shivraj.patil
From: Shivraj Patil shivraj.pa...@imgtec.com This patch removes HEVC code of uni mc cases for time being. It will be added in subsequent patches under different file name. There are total 5 sub-modules of HEVC mc functions, if we add all these modules in one single file, its size would be huge

[FFmpeg-devel] [PATCH 4/4] avcodec/mips: Restructure as per avutil/mips/generic_macros_msa.h

2015-05-28 Thread shivraj.patil
From: Shivraj Patil shivraj.pa...@imgtec.com This patch modifies HEVC mc MIPS-SIMD optimized code according to improved version of generic macros. This patch also adds new HEVC header file .libavcodec/mips/hevc_macros_msa.h. Overall, this patch is just upgrading the code with styling changes

Re: [FFmpeg-devel] [PATCH] avcodec: loongson3 optimized mpegvideo dct unquantize and denoise with mmi

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 10:47:27AM +0800, 周晓勇 wrote: -原始邮件- 发件人: Michael Niedermayer michae...@gmx.at 发送时间: 2015年5月27日 星期三 收件人: FFmpeg development discussions and patches ffmpeg-devel@ffmpeg.org 抄送: 主题: Re: [FFmpeg-devel] [PATCH] avcodec: loongson3 optimized mpegvideo

Re: [FFmpeg-devel] [PATCH] avformat/mxfenc: Support storing signal standard

2015-05-28 Thread Michael Niedermayer
On Tue, May 26, 2015 at 02:43:15PM +0200, Michael Niedermayer wrote: On Tue, May 26, 2015 at 09:45:28AM +0100, tim nicholson wrote: On 24/05/15 02:15, Michael Niedermayer wrote: also store 1 for D10 Signed-off-by: Michael Niedermayer michae...@gmx.at --- libavformat/mxfenc.c

[FFmpeg-devel] [PATCH 2/4] avcodec/mips: Restructure as per avutil/mips/generic_macros_msa.h

2015-05-28 Thread shivraj.patil
From: Shivraj Patil shivraj.pa...@imgtec.com This patch modifies H264 loopfilter, weighted bi-weighted prediction MIPS-SIMD optimized code according to improved version of generic macros. Also there are minor code alignment changes. Overall, this patch is just upgrading the code with styling

Re: [FFmpeg-devel] [PATCH 3/4] avcodec/mips: Disable uni mc optimizations

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 02:47:56PM +0530, shivraj.pa...@imgtec.com wrote: From: Shivraj Patil shivraj.pa...@imgtec.com This patch removes HEVC code of uni mc cases for time being. It will be added in subsequent patches under different file name. When code is moved it should not be removed

Re: [FFmpeg-devel] [PATCH 2/4] avcodec/mips: Restructure as per avutil/mips/generic_macros_msa.h

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 02:43:25PM +0530, shivraj.pa...@imgtec.com wrote: From: Shivraj Patil shivraj.pa...@imgtec.com This patch modifies H264 loopfilter, weighted bi-weighted prediction MIPS-SIMD optimized code according to improved version of generic macros. Also there are minor code

Re: [FFmpeg-devel] [PATCH 1/4] avutil/mips: Restructure of generic macros

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 02:36:53PM +0530, shivraj.pa...@imgtec.com wrote: From: Shivraj Patil shivraj.pa...@imgtec.com This patch includes restructuring of existing macros and addition of more generic macros. This change was necessary to avoid repeated review comments in remaining

[FFmpeg-devel] [PATCH 1/2] dvdsubdec: reset buffer size on invalid over-large packets

2015-05-28 Thread wm4
Otherwise it will never be reset, and remain stuck in this state forever. Can happen when seeking: the decoder will receive fragments from different file positions, which triggers the condition easily. --- These patches basically fix seeking. --- libavcodec/dvdsubdec.c | 1 + 1 file changed, 1

[FFmpeg-devel] [PATCH 2/2] dvdsubdec: implement flushing

2015-05-28 Thread wm4
This is needed for proper operation with seeking. --- libavcodec/dvdsubdec.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index 5abf014..08a1500 100644 --- a/libavcodec/dvdsubdec.c +++ b/libavcodec/dvdsubdec.c @@

Re: [FFmpeg-devel] [PATCH]Use av_codec_get_tag2() in avformat_query_codec()

2015-05-28 Thread Carl Eugen Hoyos
Michael Niedermayer michaelni at gmx.at writes: utils.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 53709a243d559e659c62867e4a17b7b3fd589576 patchquerycodec.diff diff --git a/libavformat/utils.c b/libavformat/utils.c LGTM The patch was merged. Thank you, Carl Eugen

Re: [FFmpeg-devel] [PATCH]lavc/x264: Support bgr0 as input pix_fmt

2015-05-28 Thread Carl Eugen Hoyos
Michael Niedermayer michaelni at gmx.at writes: libx264.c |4 1 file changed, 4 insertions(+) e9cce60b166d4585c8c600ee9a7126a8b577e2d1 patchx264bgr0.diff diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c probably ok I did some tests related to ticket #4287 and the

[FFmpeg-devel] [PATCH] dvdsubdec: reset buffer size on invalid over-large packets

2015-05-28 Thread wm4
Otherwise it will never be reset, and remain stuck in this state forever. Can happen when seeking: the decoder will receive fragments from different file positions, which triggers the condition easily. --- Minor fix: reset this field in append_to_cached_buf() directly. My previous patch missed one

Re: [FFmpeg-devel] [PATCH 2/2] dvdsubdec: implement flushing

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 02:16:36PM +0200, wm4 wrote: This is needed for proper operation with seeking. --- libavcodec/dvdsubdec.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) applied thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB In

Re: [FFmpeg-devel] [PATCH] dvdsubdec: reset buffer size on invalid over-large packets

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 02:30:14PM +0200, wm4 wrote: Otherwise it will never be reset, and remain stuck in this state forever. Can happen when seeking: the decoder will receive fragments from different file positions, which triggers the condition easily. --- Minor fix: reset this field in

[FFmpeg-devel] [PATCH 2/2] avcodec/mips: Restructure as per avutil/mips/generic_macros_msa.h

2015-05-28 Thread shivraj.patil
From: Shivraj Patil shivraj.pa...@imgtec.com This patch modifies HEVC mc MIPS-SIMD optimized code according to improved version of generic macros. Overall, this patch is just upgrading the code with styling changes and will bring it in sync with MIPS-SIMD optimized latest codebase at our end.

[FFmpeg-devel] [PATCH 1/2] dxva2_hevc: fix 32x32 scaling lists

2015-05-28 Thread Hendrik Leppkes
--- libavcodec/dxva2_hevc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/dxva2_hevc.c b/libavcodec/dxva2_hevc.c index dae990d..71aab54 100644 --- a/libavcodec/dxva2_hevc.c +++ b/libavcodec/dxva2_hevc.c @@ -209,12 +209,12 @@ static void

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/mips: Split uni mc optimizations to new file

2015-05-28 Thread Michael Niedermayer
On Thu, May 28, 2015 at 08:10:58PM +0530, shivraj.pa...@imgtec.com wrote: From: Shivraj Patil shivraj.pa...@imgtec.com This patch moves HEVC code of uni mc cases to new file hevc_mc_uni_msa.c. (There are total 5 sub-modules of HEVC mc functions, if we add all these modules in one single

Re: [FFmpeg-devel] [PATCH] mov: fix DTS calculation for samples with negative stts duration

2015-05-28 Thread Andreas Cadhalpun
On 28.05.2015 04:29, Michael Niedermayer wrote: On Thu, May 28, 2015 at 12:11:00AM +0200, Andreas Cadhalpun wrote: A negative sample duration is invalid according to the spec, but there are samples that use it for the DTS calculation, e.g.: