[FFmpeg-devel] [PATCH] Add initial program date time option (hls_init_prog_time)

2016-12-16 Thread Robert Nagy
From 14da4c9610ac0cf257b2c28f21899e854592e646 Mon Sep 17 00:00:00 2001 From: Jesper Ek Date: Wed, 7 Dec 2016 16:01:08 +0100 Subject: [PATCH] Add initial program date time option (hls_init_prog_time) It is often useful to specify the initial program date time, rather than relying on the current sy

[FFmpeg-devel] [PATCH 1/1] libavcodec/movtextdec.c: fixing decoding for UTF-8 (ticket 6021)

2016-12-16 Thread Erik Bråthen Solem
Character offsets were interpreted as byte offsets, resulting in misplaced styling tags where multibyte characters were involved. The entire subtitle stream would even be rendered invalid if such a misplaced tag happened to split a multibyte character. This patch fixes this for UTF-8; UTF-16 was an

Re: [FFmpeg-devel] [PATCH 2/5] libautil: add support for AV_HWDEVICE_TYPE_D3D11VA

2016-12-16 Thread Hendrik Leppkes
On Fri, Dec 16, 2016 at 5:32 PM, wm4 wrote: > On Fri, 16 Dec 2016 11:12:02 +0100 > Steve Lhomme wrote: > >> From: Steve Lhomme >> >> --- >> libavutil/Makefile | 3 + >> libavutil/hwcontext.c | 3 + >> libavutil/hwcontext.h | 1 + >> libavutil/hwcontext_d3d11v

Re: [FFmpeg-devel] [PATCH 1/5] ffmpeg: dxva2: factorize some code that can be common with d3d11va

2016-12-16 Thread James Almer
On 12/16/2016 7:12 AM, Steve Lhomme wrote: > From: Steve Lhomme > > ffmpeg_dxva.h has to be included and misc. typedefs have to be set to use the > proper DXVA2 structures. > > initguid.h is included in ffmpeg_dxva.h so any includes after that will also > define GUIDs locally. > --- > ffmpeg_di

Re: [FFmpeg-devel] [PATCH 2/5] libautil: add support for AV_HWDEVICE_TYPE_D3D11VA

2016-12-16 Thread wm4
On Fri, 16 Dec 2016 11:12:02 +0100 Steve Lhomme wrote: > From: Steve Lhomme > > --- > libavutil/Makefile | 3 + > libavutil/hwcontext.c | 3 + > libavutil/hwcontext.h | 1 + > libavutil/hwcontext_d3d11va.c | 457 > +

Re: [FFmpeg-devel] [PATCH 5/7] avcodec/h263dec: Return the correct error code in explode mode

2016-12-16 Thread wm4
On Thu, 15 Dec 2016 21:21:11 +0100 Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavcodec/h263dec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c > index d0da1d31c1..75fc688e78 100644 > --- a/lib

Re: [FFmpeg-devel] [PATCH 3/5] ffmpeg: add ffmpeg_d3d11va

2016-12-16 Thread wm4
On Fri, 16 Dec 2016 11:12:03 +0100 Steve Lhomme wrote: > From: Steve Lhomme > > The code is similar to ffmpeg_dxva2. The decoded output needs to be copied > into > a staging texture that can be accessed by the CPU as the decoder texture can't > be accessed by the CPU. > --- > Changelog

Re: [FFmpeg-devel] [PATCH 1/7] avutil: add FF_BAIL_ON_OVERFLOW

2016-12-16 Thread wm4
On Fri, 16 Dec 2016 13:36:09 +0700 Muhammad Faiz wrote: > On 12/16/16, Andreas Cadhalpun wrote: > > Suggested-by: Rodger Combs > > Signed-off-by: Andreas Cadhalpun > > --- > > libavutil/common.h | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/libavutil/common.h b/libavutil/co

Re: [FFmpeg-devel] [PATCH] lavc: Fix ticket 6024, truncated mode decoding

2016-12-16 Thread wm4
On Thu, 15 Dec 2016 10:19:23 -0700 pkoshe...@gmail.com wrote: > From: Pavel Koshevoy > > The assumption that avcodec_send_packet makes regarding decoders > consuming the entire packet is not true if the codec supports > truncated decoding mode and the truncated flag is turned on. > > Steps to r

Re: [FFmpeg-devel] [PATCH 1/7] avutil: add FF_BAIL_ON_OVERFLOW

2016-12-16 Thread wm4
On Fri, 16 Dec 2016 03:32:07 +0100 Andreas Cadhalpun wrote: > Suggested-by: Rodger Combs > Signed-off-by: Andreas Cadhalpun > --- > libavutil/common.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavutil/common.h b/libavutil/common.h > index 8142b31..00b7504 100644 > --- a/lib

Re: [FFmpeg-devel] [PATCH 2/2] avformat/hls: Add subtitle support

2016-12-16 Thread wm4
On Thu, 15 Dec 2016 22:01:46 + Franklin Phillips wrote: > Hi, > > I tested this code by converting HLS streams into mp4 files and it > seemed to work fine. However I recently compiled mpv with these changes > and when I play back the Apple example stream given in ticket #2833, it > seems to

Re: [FFmpeg-devel] [PATCH] avfilter/vf_ssim: add 9 and 10 bit depth support

2016-12-16 Thread Michael Niedermayer
On Fri, Dec 16, 2016 at 09:19:00AM +0100, Paul B Mahol wrote: > On 12/16/16, Michael Niedermayer wrote: > > On Thu, Dec 15, 2016 at 10:39:37PM +0100, Paul B Mahol wrote: > >> Hi, > >> > >> patch attached > > > >> vf_ssim.c | 130 > >> -

Re: [FFmpeg-devel] [PATCH 1/2] wmavoice: don't check if we have enough bits to read a superframe.

2016-12-16 Thread Michael Niedermayer
On Fri, Dec 16, 2016 at 09:51:07AM -0500, Ronald S. Bultje wrote: > Hi, > > On Fri, Dec 16, 2016 at 9:49 AM, Michael Niedermayer > wrote: > > > On Fri, Dec 16, 2016 at 08:19:44AM -0500, Ronald S. Bultje wrote: > > > The checked bitstream reader makes this unnecessary. > > > --- > > > libavcodec

Re: [FFmpeg-devel] [PATCH] wmavoice: don't check if we have enough bits to read a superframe.

2016-12-16 Thread Michael Niedermayer
On Fri, Dec 16, 2016 at 09:41:28AM -0500, Ronald S. Bultje wrote: > The checked bitstream reader makes this unnecessary. > --- > libavcodec/wmavoice.c | 86 > ++- > 1 file changed, 2 insertions(+), 84 deletions(-) This breaks fate too TESTwmav

Re: [FFmpeg-devel] [PATCH 1/2] wmavoice: don't check if we have enough bits to read a superframe.

2016-12-16 Thread Ronald S. Bultje
Hi, On Fri, Dec 16, 2016 at 9:49 AM, Michael Niedermayer wrote: > On Fri, Dec 16, 2016 at 08:19:44AM -0500, Ronald S. Bultje wrote: > > The checked bitstream reader makes this unnecessary. > > --- > > libavcodec/wmavoice.c | 83 -- > - > > 1 file

Re: [FFmpeg-devel] [PATCH 1/2] wmavoice: don't check if we have enough bits to read a superframe.

2016-12-16 Thread Michael Niedermayer
On Fri, Dec 16, 2016 at 08:19:44AM -0500, Ronald S. Bultje wrote: > The checked bitstream reader makes this unnecessary. > --- > libavcodec/wmavoice.c | 83 > --- > 1 file changed, 83 deletions(-) this breaks fate TESTwmavoice-19k stddev:10179

[FFmpeg-devel] [PATCH] wmavoice: don't check if we have enough bits to read a superframe.

2016-12-16 Thread Ronald S. Bultje
The checked bitstream reader makes this unnecessary. --- libavcodec/wmavoice.c | 86 ++- 1 file changed, 2 insertions(+), 84 deletions(-) diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c index ba02c7d..e4ea128 100644 --- a/libavcodec/wmavo

Re: [FFmpeg-devel] [PATCH] avutil: Added selftest for libavutil/audio_fifo.c

2016-12-16 Thread Michael Niedermayer
On Thu, Dec 15, 2016 at 07:55:57PM -0800, Thomas Turner wrote: > Signed-off-by: Thomas Turner > --- > libavutil/Makefile | 1 + > libavutil/tests/audio_fifo.c | 210 +++ > tests/fate/libavutil.mak | 4 + > tests/ref/fate/audio_fifo| 228 >

Re: [FFmpeg-devel] [PATCH 1/2] wmavoice: don't check if we have enough bits to read a superframe.

2016-12-16 Thread Paul B Mahol
On 12/16/16, Ronald S. Bultje wrote: > The checked bitstream reader makes this unnecessary. > --- > libavcodec/wmavoice.c | 83 > --- > 1 file changed, 83 deletions(-) > lgtm ___ ffmpeg-devel mailing list

Re: [FFmpeg-devel] [PATCH 2/7] 4xm: prevent overflow during block alignment calculation

2016-12-16 Thread Michael Niedermayer
On Fri, Dec 16, 2016 at 03:32:42AM +0100, Andreas Cadhalpun wrote: > Signed-off-by: Andreas Cadhalpun > --- > libavformat/4xm.c | 1 + > 1 file changed, 1 insertion(+) should be ok [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Those who are best at talking,

[FFmpeg-devel] [PATCH 2/2] wmavoice: don't error out if we're skipping more bits than available.

2016-12-16 Thread Ronald S. Bultje
This reverts 2a4700a4f03280fa8ba4fc0f8a9987bb550f0d1e and implements it correctly so streams actually decode the way the encoder intended them to. --- libavcodec/wmavoice.c | 20 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/libavcodec/wmavoice.c b/libavcodec/

[FFmpeg-devel] [PATCH 1/2] wmavoice: don't check if we have enough bits to read a superframe.

2016-12-16 Thread Ronald S. Bultje
The checked bitstream reader makes this unnecessary. --- libavcodec/wmavoice.c | 83 --- 1 file changed, 83 deletions(-) diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c index ceac61f..0f29bdd 100644 --- a/libavcodec/wmavoice.c +++ b/libav

Re: [FFmpeg-devel] [PATCH]: reset resample-sample_fmt in the input stream after decode initialization

2016-12-16 Thread Hendrik Leppkes
On Fri, Dec 16, 2016 at 1:35 PM, Sumit Agarwal wrote: > h264_cuvid (without hwaccel) + hwupload_cuda filter is currently broken. The > resample_sample_fmt in the input stream is not updated after h264_cuvid > decoder is initialized, due to this reconfiguration of the filter graph is > triggered

[FFmpeg-devel] [PATCH]: reset resample-sample_fmt in the input stream after decode initialization

2016-12-16 Thread Sumit Agarwal
h264_cuvid (without hwaccel) + hwupload_cuda filter is currently broken. The resample_sample_fmt in the input stream is not updated after h264_cuvid decoder is initialized, due to this reconfiguration of the filter graph is triggered after the decode. During reconfiguration, Scale filter is inse

Re: [FFmpeg-devel] [PATCH] avformat/wavdec: Eliminate goto for clang -O0 DCE

2016-12-16 Thread Michael Niedermayer
On Thu, Dec 15, 2016 at 04:44:57PM -0800, Mark Harris wrote: > Clang is not able to eliminate the reference to ff_spdif_probe() when > there is a goto target in the same block and optimization is disabled. > > This fixes the following build failure on OS X: > ./configure --disable-everything --d

Re: [FFmpeg-devel] [PATCH] configure: fix linking with MSVC when using --disable-optimizations

2016-12-16 Thread Stève Lhomme
On Fri, Dec 16, 2016 at 1:34 AM, Matt Oliver wrote: > On 16 December 2016 at 11:20, Carl Eugen Hoyos wrote: > >> 2016-12-14 16:47 GMT+01:00 Steve Lhomme : >> > From: Steve Lhomme >> > >> > Without any optimization flags, MSVC does no dead code elimination (DCE) >> at >> > all, even for the most

Re: [FFmpeg-devel] [PATCH] NV12 Tile format conversion

2016-12-16 Thread Sunny Shukla
Ok, let me know what can be done to make sure we have conversion of NV12 tiled format to NV12 in ffmpeg. From: ffmpeg-devel on behalf of Hendrik Leppkes Sent: Friday, December 16, 2016 4:27 PM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] NV12 Tile format

Re: [FFmpeg-devel] [PATCH 1/1] Fixing 3GPP Timed Text (TTXT / tx3g / mov_text) encoding for UTF-8 (ticket 6021)

2016-12-16 Thread Michael Niedermayer
On Thu, Dec 15, 2016 at 10:43:15PM +, Erik Bråthen Solem wrote: > According to the format specification (3GPP TS 26.245, section 5.2) "storage > lengths are specified as byte-counts, wheras highlighting is specified using > character offsets." This patch replaces byte counting with character co

[FFmpeg-devel] [PATCH 5/5] ffmpeg: use the typedefs more to make comparison between dxva2 and d3d11va

2016-12-16 Thread Steve Lhomme
From: Steve Lhomme --- ffmpeg_d3d11va.c | 20 ++-- ffmpeg_dxva2.c | 20 ++-- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/ffmpeg_d3d11va.c b/ffmpeg_d3d11va.c index 18c3e53..837c250 100644 --- a/ffmpeg_d3d11va.c +++ b/ffmpeg_d3d11va.c @@ -59,1

[FFmpeg-devel] [PATCH 2/5] libautil: add support for AV_HWDEVICE_TYPE_D3D11VA

2016-12-16 Thread Steve Lhomme
From: Steve Lhomme --- libavutil/Makefile | 3 + libavutil/hwcontext.c | 3 + libavutil/hwcontext.h | 1 + libavutil/hwcontext_d3d11va.c | 457 + libavutil/hwcontext_d3d11va.h | 81 libavutil/hwcontext_intern

[FFmpeg-devel] [PATCH 3/5] ffmpeg: add ffmpeg_d3d11va

2016-12-16 Thread Steve Lhomme
From: Steve Lhomme The code is similar to ffmpeg_dxva2. The decoded output needs to be copied into a staging texture that can be accessed by the CPU as the decoder texture can't be accessed by the CPU. --- Changelog| 1 + Makefile | 1 + ffmpeg.h | 2 + ffmpeg_d3d11

[FFmpeg-devel] [PATCH 4/5] ffmpeg_dxva2: remove unused initial values

2016-12-16 Thread Steve Lhomme
From: Steve Lhomme --- ffmpeg_dxva2.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ffmpeg_dxva2.c b/ffmpeg_dxva2.c index eb61017..cfde649 100644 --- a/ffmpeg_dxva2.c +++ b/ffmpeg_dxva2.c @@ -124,8 +124,8 @@ static int dxva2_get_decoder_configuration(AVCodecCon

[FFmpeg-devel] [PATCH 1/5] ffmpeg: dxva2: factorize some code that can be common with d3d11va

2016-12-16 Thread Steve Lhomme
From: Steve Lhomme ffmpeg_dxva.h has to be included and misc. typedefs have to be set to use the proper DXVA2 structures. initguid.h is included in ffmpeg_dxva.h so any includes after that will also define GUIDs locally. --- ffmpeg_directx_va_template.c | 300 +++

Re: [FFmpeg-devel] [PATCH] NV12 Tile format conversion

2016-12-16 Thread Hendrik Leppkes
On Fri, Dec 16, 2016 at 10:41 AM, Sunny Shukla wrote: > Hi, > > NV12 Tile format conversion to NV12 and yuv420p support is added. NV12 Tile > format conversion support is only added for input format not as output format. > > The algorithm used is referenced from > https://github.com/ssshukla26/N

[FFmpeg-devel] [PATCH] NV12 Tile format conversion

2016-12-16 Thread Sunny Shukla
Hi, NV12 Tile format conversion to NV12 and yuv420p support is added. NV12 Tile format conversion support is only added for input format not as output format. The algorithm used is referenced from https://github.com/ssshukla26/NV12Tile-To-NV12-Conversion. It is checked with 480p,720p, 1080p an

[FFmpeg-devel] NV12 Tile format conversion

2016-12-16 Thread Sunny Shukla
Hi, NV12 Tile format conversion to NV12 and yuv420p support is added. NV12 Tile format conversion support is only added for input format not as output format. The algorithm used is referenced from https://github.com/ssshukla26/NV12Tile-To-NV12-Conversion. It is checked with 480p,720p, 1080p an

Re: [FFmpeg-devel] [PATCH] avfilter/vf_ssim: add 9 and 10 bit depth support

2016-12-16 Thread Paul B Mahol
On 12/16/16, Michael Niedermayer wrote: > On Thu, Dec 15, 2016 at 10:39:37PM +0100, Paul B Mahol wrote: >> Hi, >> >> patch attached > >> vf_ssim.c | 130 >> - >> x86/vf_ssim_init.c |2 >> 2 files changed, 120 insertions(+), 12 dele