ffmpeg.git
21 months agopixdesc: Add API to map color property names to enum values
Vittorio Giovara [Wed, 20 Sep 2017 11:27:10 +0000 (13:27 +0200)]
pixdesc: Add API to map color property names to enum values

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
21 months agoavcodec/mips: Reduced conditional cases in avc inter lpf msa functions
Kaustubh Raste [Mon, 18 Sep 2017 08:38:37 +0000 (14:08 +0530)]
avcodec/mips: Reduced conditional cases in avc inter lpf msa functions

Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoavcodec/mips: Unrolled loops and expanded functions in avc put mc 10 & 30 msa functions
Kaustubh Raste [Mon, 18 Sep 2017 08:30:13 +0000 (14:00 +0530)]
avcodec/mips: Unrolled loops and expanded functions in avc put mc 10 & 30 msa functions

Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoGnuTLS: eat PREMATURE_TERMINATION error
Tatsuyuki Ishi [Fri, 15 Sep 2017 08:04:38 +0000 (17:04 +0900)]
GnuTLS: eat PREMATURE_TERMINATION error

GnuTLS is too strict on the SSL shutdown alert, and it's neither
mandatory in the spec or critical. As it's ignored in OpenSSL, we
should also suppress it in GnuTLS as well.

Ticket: #6667

Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoavformat/cafdec: reject multichannel Opus streams
Anton Khirnov [Wed, 20 Sep 2017 02:04:55 +0000 (23:04 -0300)]
avformat/cafdec: reject multichannel Opus streams

Multichannel Opus streams require channel mapping information in extradata.

Signed-off-by: James Almer <jamrial@gmail.com>
21 months agolavf/caf: Support demuxing Opus.
Carl Eugen Hoyos [Wed, 20 Sep 2017 01:31:48 +0000 (03:31 +0200)]
lavf/caf: Support demuxing Opus.

Introduced in macOS High Sierra and iOS 11.

21 months agoavcodec/mips: preload data in hevc sao edge 0 degree filter msa functions
Kaustubh Raste [Mon, 18 Sep 2017 08:24:40 +0000 (13:54 +0530)]
avcodec/mips: preload data in hevc sao edge 0 degree filter msa functions

Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoavcodec/mips: Fixed rnd_val variable to 6 in hevc uni mc msa functions
Kaustubh Raste [Mon, 18 Sep 2017 08:18:48 +0000 (13:48 +0530)]
avcodec/mips: Fixed rnd_val variable to 6 in hevc uni mc msa functions

Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoMAINTAINERS: add myself for bwdif and (t)interlace
Thomas Mundt [Fri, 15 Sep 2017 23:57:27 +0000 (01:57 +0200)]
MAINTAINERS: add myself for bwdif and (t)interlace

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoavcodec/pngdec: Clean up on av_frame_ref() failure
Michael Niedermayer [Sun, 17 Sep 2017 00:42:11 +0000 (02:42 +0200)]
avcodec/pngdec: Clean up on av_frame_ref() failure

Fixes: memleak
Fixes: 3203/clusterfuzz-testcase-minimized-4514553595428864

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agolavf/mpegts: Consider stream_type 0x0f just a hint towards AAC.
Carl Eugen Hoyos [Wed, 13 Sep 2017 17:05:10 +0000 (19:05 +0200)]
lavf/mpegts: Consider stream_type 0x0f just a hint towards AAC.

It is also used in the wild to signal latm.

Fixes ticket #6657.

21 months agolavfi/stereo3d: Set SAR for every output frame.
Carl Eugen Hoyos [Mon, 18 Sep 2017 21:10:06 +0000 (23:10 +0200)]
lavfi/stereo3d: Set SAR for every output frame.

Fixes ticket #6672.

21 months agolavf/utils: Do not force chapter end time before chapter start.
Carl Eugen Hoyos [Sun, 17 Sep 2017 21:34:58 +0000 (23:34 +0200)]
lavf/utils: Do not force chapter end time before chapter start.

Fixes ticket #6671.

21 months agolavd/kmsgrab: Remove the mapping for AV_PIX_FMT_RGB8.
Carl Eugen Hoyos [Tue, 19 Sep 2017 22:56:29 +0000 (00:56 +0200)]
lavd/kmsgrab: Remove the mapping for AV_PIX_FMT_RGB8.

The definitions are different: 3:3:2 vs 2:3:3.

21 months agoavutil/hwcontext_dxva2: return an error when buffer allocation fails
James Almer [Sun, 17 Sep 2017 03:17:42 +0000 (00:17 -0300)]
avutil/hwcontext_dxva2: return an error when buffer allocation fails

This also prevents the use of an uninitialized variable.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
21 months agokmsgrab: Add more DRM plane formats
Carl Eugen Hoyos [Fri, 15 Sep 2017 20:24:48 +0000 (21:24 +0100)]
kmsgrab: Add more DRM plane formats

21 months agohwcontext_vaapi: Fix DRM format mapping
Mark Thompson [Fri, 15 Sep 2017 20:05:49 +0000 (21:05 +0100)]
hwcontext_vaapi: Fix DRM format mapping

21 months agokmsgrab: Remove multiple-plane formats
Mark Thompson [Fri, 15 Sep 2017 19:54:26 +0000 (20:54 +0100)]
kmsgrab: Remove multiple-plane formats

The planes are unlikely to be contiguous, assuming they are results in
very broken output.  (Tested with NV12/NV16 on Rockchip.)

21 months agokmsgrab: Fix DRM format definitions
Mark Thompson [Fri, 15 Sep 2017 19:48:18 +0000 (20:48 +0100)]
kmsgrab: Fix DRM format definitions

All DRM formats are defined in terms of little-endian words, so RGB formats
like XRGB actually have the elements in the opposite order order in memory
to the order they are in the name.

This does not affect YUYV and similar YUV 4:2:2 formats, which are in the
expected order.

21 months agovaapi: Disable deprecation warnings around use of old struct vaapi_context
Mark Thompson [Thu, 14 Sep 2017 21:11:45 +0000 (22:11 +0100)]
vaapi: Disable deprecation warnings around use of old struct vaapi_context

21 months agovp9: move VP9SharedContext back to the top of VP9Context
Hendrik Leppkes [Tue, 19 Sep 2017 08:45:41 +0000 (10:45 +0200)]
vp9: move VP9SharedContext back to the top of VP9Context

VP9SharedContext needs to be the first member so its properties can be
safely accessed from hardware accelerators, without the need to share
the full VP9Context.

Fixes ticket #6674.

21 months agox86/exrdsp: optimize ff_reorder_pixels_avx2()
Henrik Gramner [Mon, 18 Sep 2017 01:52:13 +0000 (22:52 -0300)]
x86/exrdsp: optimize ff_reorder_pixels_avx2()

Tested with "checkasm --test=exrdsp -bench"

Before:
reorder_pixels_c: 5187.8
reorder_pixels_sse2: 377.0
reorder_pixels_avx2: 331.3

After:
reorder_pixels_c: 5181.5
reorder_pixels_sse2: 377.0
reorder_pixels_avx2: 313.8

Signed-off-by: James Almer <jamrial@gmail.com>
21 months agoavformat/mxfenc: cosmetic changes
Tobias Rapp [Thu, 14 Sep 2017 14:05:31 +0000 (16:05 +0200)]
avformat/mxfenc: cosmetic changes

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
21 months agofate: add mxf_dv25/dvcpro50 regression tests
Tobias Rapp [Thu, 14 Sep 2017 13:23:04 +0000 (15:23 +0200)]
fate: add mxf_dv25/dvcpro50 regression tests

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
21 months agoavformat/mxfenc: fix aspect ratio when writing 16:9 DV frames
Tobias Rapp [Thu, 14 Sep 2017 12:03:28 +0000 (14:03 +0200)]
avformat/mxfenc: fix aspect ratio when writing 16:9 DV frames

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
21 months agoavfilter/tinterlace: Simplify checks for lowpass filtering flags
James Almer [Mon, 18 Sep 2017 02:41:31 +0000 (23:41 -0300)]
avfilter/tinterlace: Simplify checks for lowpass filtering flags

21 months agofate: add tinterlace lowpass filtering tests
Thomas Mundt [Mon, 18 Sep 2017 02:41:00 +0000 (23:41 -0300)]
fate: add tinterlace lowpass filtering tests

Signed-off-by: James Almer <jamrial@gmail.com>
21 months agolavc/frame_thread_encoder: Do not mix variable declaration and code.
Carl Eugen Hoyos [Mon, 18 Sep 2017 01:24:52 +0000 (03:24 +0200)]
lavc/frame_thread_encoder: Do not mix variable declaration and code.

Fixes a warning:
ISO C90 forbids mixed declarations and code

21 months agocheckasm: add an exrdsp test
James Almer [Sun, 17 Sep 2017 21:48:02 +0000 (18:48 -0300)]
checkasm: add an exrdsp test

Signed-off-by: James Almer <jamrial@gmail.com>
21 months agoavcodec/exrdsp: improve the ExrDSPContext->reorder_pixels prototype
James Almer [Sun, 17 Sep 2017 21:56:39 +0000 (18:56 -0300)]
avcodec/exrdsp: improve the ExrDSPContext->reorder_pixels prototype

Make dst be the first parameter and src const. It's more in line with the rest of the codebase.

Signed-off-by: James Almer <jamrial@gmail.com>
21 months agolibavcodec/exr : add X86 SIMD for reorder_pixels
Martin Vignali [Sun, 17 Sep 2017 19:59:41 +0000 (21:59 +0200)]
libavcodec/exr : add X86 SIMD for reorder_pixels

Signed-off-by: James Almer <jamrial@gmail.com>
21 months agoavcodec/vorbisenc: Fix mixed declaration and statements
Michael Niedermayer [Sat, 16 Sep 2017 17:21:35 +0000 (19:21 +0200)]
avcodec/vorbisenc: Fix mixed declaration and statements

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoavcodec/fits: Fix include type
Michael Niedermayer [Sat, 16 Sep 2017 17:20:28 +0000 (19:20 +0200)]
avcodec/fits: Fix include type

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoavutil/imgutils: Fix warning: missing braces around initializer
Michael Niedermayer [Sat, 16 Sep 2017 17:19:54 +0000 (19:19 +0200)]
avutil/imgutils: Fix warning: missing braces around initializer

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoavcodec/frame_thread_encoder: Fix AV_OPT_TYPE_STRING handling in avctx
Reimar Döffinger [Wed, 13 Sep 2017 16:59:21 +0000 (18:59 +0200)]
avcodec/frame_thread_encoder: Fix AV_OPT_TYPE_STRING handling in avctx

This is the equivalent to what 7d317d4706b49d572a1eb5269438753be18362c7
did for the codec-specific options.
av_opt_copy has specific handling so it's fine that we already copied
the whole context before.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
21 months agoavformat/hlsenc: fix segfault when using -hls_segment_type fmp4 with -hls_segment_fil...
Aman Gupta [Sat, 16 Sep 2017 02:32:28 +0000 (10:32 +0800)]
avformat/hlsenc: fix segfault when using -hls_segment_type fmp4 with -hls_segment_filename

previously, specifying -hls_segment_filename meant
s->base_output_dirname was never set, causing a segfault:

(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
* frame #0: 0x00007fffbf7d82d0 libsystem_platform.dylib`_platform_strcmp + 80
frame #1: 0x00000001005f4dcf libavformat.57.dylib`io_open_default(s=0x000000010481cc00, pb=0x0000000104806020, url=0x0000000000000000, flags=2, options=0x0000000000000000) at options.c:107
frame #2: 0x0000000100528968 libavformat.57.dylib`hls_mux_init(s=0x000000010481cc00) at hlsenc.c:595
frame #3: 0x00000001005273cb libavformat.57.dylib`hls_write_header(s=0x000000010481cc00) at hlsenc.c:1518
frame #4: 0x00000001005c08d0 libavformat.57.dylib`write_header_internal(s=0x000000010481cc00) at mux.c:486
frame #5: 0x00000001005c0774 libavformat.57.dylib`avformat_write_header(s=0x000000010481cc00, options=0x00000001029026e8) at mux.c:539

21 months agovf_fps: Fix memory leak introduced by eea64ef4
Thierry Foucu [Fri, 15 Sep 2017 15:49:54 +0000 (08:49 -0700)]
vf_fps: Fix memory leak introduced by eea64ef4

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoavfilter/interlace: simplify code
Thomas Mundt [Thu, 14 Sep 2017 19:20:24 +0000 (21:20 +0200)]
avfilter/interlace: simplify code

Signed-off-by: Thomas Mundt <tmundt75@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoavfilter/interlace: prevent over-sharpening with the complex low-pass filter
Thomas Mundt [Wed, 30 Aug 2017 01:37:18 +0000 (03:37 +0200)]
avfilter/interlace: prevent over-sharpening with the complex low-pass filter

The complex vertical low-pass filter slightly over-sharpens the picture. This becomes visible when several transcodings are cascaded and the error potentises, e.g. some generations of HD->SD SD->HD.
To prevent this behaviour the destination pixel must not exceed the source pixel when the average of the pixels above and below is less than the source pixel. And the other way around.

Tested and approved in a visual transcoding cascade test by video professionals.
SSIM/PSNR test with the first generation of an HD->SD file as a reference against the 6th generation(3 x SD->HD HD->SD):
Results without the patch:
SSIM Y:0.956508 (13.615881) U:0.991601 (20.757750) V:0.993004 (21.551382) All:0.974405 (15.918463)
PSNR y:31.838009 u:48.424280 v:48.962711 average:34.759466 min:31.699297 max:40.857847
Results with the patch:
SSIM Y:0.970051 (15.236232) U:0.991883 (20.905857) V:0.993174 (21.658049) All:0.981290 (17.279202)
PSNR y:34.412108 u:48.504454 v:48.969496 average:37.264644 min:34.310637 max:42.373392

Signed-off-by: Thomas Mundt <tmundt75@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoavcodec/mips: Improve hevc sao band filter msa functions
Kaustubh Raste [Fri, 15 Sep 2017 11:36:34 +0000 (17:06 +0530)]
avcodec/mips: Improve hevc sao band filter msa functions

Preload data in band filter 0-8 for better pipeline parallelization.

Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoavcodec/mips: Improve avc mc copy msa functions
Kaustubh Raste [Fri, 15 Sep 2017 06:13:01 +0000 (11:43 +0530)]
avcodec/mips: Improve avc mc copy msa functions

Remove loops and unroll as block sizes are known.

Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
21 months agoavcodec/mips: Improve avc lpf msa functions
Kaustubh Raste [Fri, 15 Sep 2017 05:58:23 +0000 (11:28 +0530)]
avcodec/mips: Improve avc lpf msa functions

Optimize luma intra case by reducing conditional cases.

Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agolavf/http: fix compilation without zlib
Clément Bœsch [Fri, 15 Sep 2017 13:09:54 +0000 (15:09 +0200)]
lavf/http: fix compilation without zlib

Regression since e2f8f14052d99d7710cda0a821e236765b315d0b.

22 months agobuild: fix coreimage filters dependency to AppKit framework
Clément Bœsch [Fri, 15 Sep 2017 12:27:36 +0000 (14:27 +0200)]
build: fix coreimage filters dependency to AppKit framework

AppKit is not present on iOS.

22 months agolavc/mediacodec_wrapper: fix jni vaargs types
Matthieu Bouron [Fri, 15 Sep 2017 11:45:47 +0000 (13:45 +0200)]
lavc/mediacodec_wrapper: fix jni vaargs types

Fixes decoding on 32-bit devices with Android NDK >= 15.

22 months agolavf/http: Reset compressed header flag, fix http 302 request
Jacek Jendrzej [Thu, 20 Jul 2017 11:46:46 +0000 (13:46 +0200)]
lavf/http: Reset compressed header flag, fix http 302 request

Fixes ticket #6404.
Fixes ticket #6666.

Signed-off-by: Jacek Jendrzej <satbaby@kawaii.com>
22 months agovf_fps: when reading EOF, using current_pts to duplicate the last frame if needed.
Thierry Foucu [Wed, 13 Sep 2017 01:45:57 +0000 (18:45 -0700)]
vf_fps: when reading EOF, using current_pts to duplicate the last frame if needed.

Fix ticket #2674
Tested with examples from ticket 2674.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoavcodec/mips: Improve hevc idct msa functions
Kaustubh Raste [Tue, 12 Sep 2017 11:31:58 +0000 (17:01 +0530)]
avcodec/mips: Improve hevc idct msa functions

Align the buffers. Remove reduandant constant array.

Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoavcodec/mips: Improve hevc lpf msa functions
Kaustubh Raste [Tue, 12 Sep 2017 11:15:12 +0000 (16:45 +0530)]
avcodec/mips: Improve hevc lpf msa functions

Seperate the filter processing in all strong, all weak and strong + weak cases.

Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agohwcontext_vaapi: Fix build failure with old libdrm
Jun Zhao [Thu, 14 Sep 2017 00:21:38 +0000 (20:21 -0400)]
hwcontext_vaapi: Fix build failure with old libdrm

Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
22 months agokmsgrab: Fix build failure with old libdrm
Jun Zhao [Thu, 14 Sep 2017 00:21:38 +0000 (20:21 -0400)]
kmsgrab: Fix build failure with old libdrm

DRM_FORMAT_R8 was added in libdrm 2.4.68.
DRM_FORMAT_R16 was added in libdrm 2.4.82.

Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
22 months agoavfilter/vf_despill: fix assigment
Paul B Mahol [Thu, 14 Sep 2017 16:05:57 +0000 (18:05 +0200)]
avfilter/vf_despill: fix assigment

Reported-by: Moritz Barsnick
Signed-off-by: Paul B Mahol <onemda@gmail.com>
22 months agolavd/kmsgrab: Fix packet flag setting
Mark Thompson [Thu, 14 Sep 2017 08:14:36 +0000 (09:14 +0100)]
lavd/kmsgrab: Fix packet flag setting

Found-by: James Almer <jamrial@gmail.com>
22 months agoavcodec.h: fix doxygen comment
James Almer [Thu, 14 Sep 2017 04:43:52 +0000 (01:43 -0300)]
avcodec.h: fix doxygen comment

22 months agodoc/indevs: Document kmsgrab input device
Mark Thompson [Mon, 11 Sep 2017 23:19:03 +0000 (00:19 +0100)]
doc/indevs: Document kmsgrab input device

22 months agolavd: Add KMS screen grabber
Mark Thompson [Sat, 2 Sep 2017 17:14:27 +0000 (18:14 +0100)]
lavd: Add KMS screen grabber

22 months agolavc: Add wrapped_avframe decoder
Mark Thompson [Sat, 2 Sep 2017 19:32:27 +0000 (20:32 +0100)]
lavc: Add wrapped_avframe decoder

Intended for use with hardware frames for which rawvideo is not
sufficient.  Requires the trusted packet flag to be set - decoding
fails if not to avoid security issues (the wrapped AVFrame can
contain pointers to arbitrary data).

22 months agolavc: Add flag to mark packets containing trusted input
Mark Thompson [Thu, 7 Sep 2017 21:27:09 +0000 (22:27 +0100)]
lavc: Add flag to mark packets containing trusted input

22 months agohwcontext_vaapi: Add DRM to VAAPI mapping
Mark Thompson [Sat, 2 Sep 2017 17:08:34 +0000 (18:08 +0100)]
hwcontext_vaapi: Add DRM to VAAPI mapping

22 months agolavu: Add DRM hwcontext
Mark Thompson [Sun, 18 Jun 2017 17:16:27 +0000 (18:16 +0100)]
lavu: Add DRM hwcontext

22 months agoavcodec/extract_extradata: return an error when buffer allocation fails
James Almer [Wed, 13 Sep 2017 20:03:56 +0000 (17:03 -0300)]
avcodec/extract_extradata: return an error when buffer allocation fails

ret is 0 by default.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
22 months agoconfigure: check if NAN can be used as a constant initializer
James Almer [Wed, 13 Sep 2017 17:07:21 +0000 (14:07 -0300)]
configure: check if NAN can be used as a constant initializer

Some targets, like NetBSD and DJGPP, don't seem to support it.

Signed-off-by: James Almer <jamrial@gmail.com>
22 months agoavformat/fitsenc: fill header line with spaces
Paras Chadha [Sat, 2 Sep 2017 19:07:22 +0000 (00:37 +0530)]
avformat/fitsenc: fill header line with spaces

Signed-off-by: Paras Chadha <paraschadha18@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
22 months agoavcodec/h264_sei: add namespace prefix to frame packingarrangement enum values
James Almer [Tue, 12 Sep 2017 22:59:23 +0000 (19:59 -0300)]
avcodec/h264_sei: add namespace prefix to frame packingarrangement enum values

Missed in 6eb102a616364d06a4cc994339b72910b3547e5f.

Signed-off-by: James Almer <jamrial@gmail.com>
22 months agoh264_sei: Add namespace prefix to all SEI values
Mark Thompson [Mon, 15 May 2017 21:42:14 +0000 (22:42 +0100)]
h264_sei: Add namespace prefix to all SEI values

This avoids confusion with equivalent H.265 SEI values when both are
being used at the same time.

(cherry picked from commit 6ea220cbeec8863e2006a03b73bed52db2b13ee7)

22 months agovp9: fix explicit memory order for report_progress.
Ronald S. Bultje [Tue, 12 Sep 2017 19:02:20 +0000 (15:02 -0400)]
vp9: fix explicit memory order for report_progress.

22 months agoavfilter/af_dcshift: do not leak out frame
Paul B Mahol [Tue, 12 Sep 2017 18:26:44 +0000 (20:26 +0200)]
avfilter/af_dcshift: do not leak out frame

Signed-off-by: Paul B Mahol <onemda@gmail.com>
22 months agoavformat/mxfenc: Correct the Sample rate for PCM outside D10
Michael Niedermayer [Sun, 10 Sep 2017 20:10:45 +0000 (22:10 +0200)]
avformat/mxfenc: Correct the Sample rate for PCM outside D10

Based on mail from IRT

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoavformat/mxfenc: Comment edit rate write code like the surrounding code
Michael Niedermayer [Sun, 10 Sep 2017 20:10:44 +0000 (22:10 +0200)]
avformat/mxfenc: Comment edit rate write code like the surrounding code

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoavformat/mxfenc: Replace more literal magic numbers by enum values.
Michael Niedermayer [Sun, 10 Sep 2017 20:10:43 +0000 (22:10 +0200)]
avformat/mxfenc: Replace more literal magic numbers by enum values.

This also moves the enum table up as it is needed earlier

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoframe_thread_encoder: make 'exit' member atomic.
Ronald S. Bultje [Mon, 11 Sep 2017 13:58:47 +0000 (09:58 -0400)]
frame_thread_encoder: make 'exit' member atomic.

Should fix the following tsan warning:

WARNING: ThreadSanitizer: data race (pid=19806)
  Read of size 4 at 0x7b84000012f0 by thread T9:
    #0 worker src/libavcodec/frame_thread_encoder.c:66 (ffmpeg+0x0000007f349e)
[..]
  Previous write of size 4 at 0x7b84000012f0 by main thread (mutexes: write M1395):
    #0 ff_frame_thread_encoder_free src/libavcodec/frame_thread_encoder.c:239 (ffmpeg+0x0000007f379e)
[..]

22 months agolavfi/framesync: remove dead code.
Nicolas George [Tue, 12 Sep 2017 09:23:39 +0000 (11:23 +0200)]
lavfi/framesync: remove dead code.

Fix CID 1416960.

22 months agolavfi/framesync: reword repeatlast option help.
Nicolas George [Tue, 12 Sep 2017 09:14:25 +0000 (11:14 +0200)]
lavfi/framesync: reword repeatlast option help.

22 months agodoc: update filter_design.txt.
Nicolas George [Thu, 31 Aug 2017 15:05:31 +0000 (17:05 +0200)]
doc: update filter_design.txt.

22 months agolavfi: rename framesync2 to framesync.
Nicolas George [Thu, 31 Aug 2017 17:47:37 +0000 (19:47 +0200)]
lavfi: rename framesync2 to framesync.

22 months agolavfi: remove framesync.
Nicolas George [Thu, 31 Aug 2017 15:42:57 +0000 (17:42 +0200)]
lavfi: remove framesync.

22 months agolavfi/af_sidechaincompress: use helper macros.
Nicolas George [Thu, 31 Aug 2017 15:40:26 +0000 (17:40 +0200)]
lavfi/af_sidechaincompress: use helper macros.

22 months agolavfi/af_agate: use helper macros.
Nicolas George [Thu, 31 Aug 2017 14:53:35 +0000 (16:53 +0200)]
lavfi/af_agate: use helper macros.

22 months agolavfi: add helper functions and macros for activate.
Nicolas George [Thu, 31 Aug 2017 15:05:04 +0000 (17:05 +0200)]
lavfi: add helper functions and macros for activate.

22 months agoavcodec/hevc_ps: Fix limit of chroma_qp_offset_list_len_minus1
Michael Niedermayer [Sun, 10 Sep 2017 19:10:18 +0000 (21:10 +0200)]
avcodec/hevc_ps: Fix limit of chroma_qp_offset_list_len_minus1

A value of 5 is allowed

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoavcodec/hevc_ps: Fix c?_qp_offset_list size
Michael Niedermayer [Sun, 10 Sep 2017 19:10:17 +0000 (21:10 +0200)]
avcodec/hevc_ps: Fix c?_qp_offset_list size

Fixes: runtime error: index 5 out of bounds for type 'int8_t const[5]'
Fixes:3175/clusterfuzz-testcase-minimized-4736774054084608

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoavcodec/shorten: Move buffer allocation and offset init to end of read_header()
Michael Niedermayer [Sun, 10 Sep 2017 19:10:16 +0000 (21:10 +0200)]
avcodec/shorten: Move buffer allocation and offset init to end of read_header()

They are time consuming operations, performing them after the other checks
improves the speed with damaged input dramatically.

Fixes: Timeout
Fixes: 2928/clusterfuzz-testcase-4992812120539136

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoavcodec/hevc_ps: improve check for missing default display window bitstream
James Almer [Fri, 8 Sep 2017 00:23:04 +0000 (21:23 -0300)]
avcodec/hevc_ps: improve check for missing default display window bitstream

Fixes ticket #6644

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
22 months agovp9: assert -> av_assert and fix associated compile error.
Ronald S. Bultje [Mon, 11 Sep 2017 19:41:24 +0000 (15:41 -0400)]
vp9: assert -> av_assert and fix associated compile error.

22 months agoMAINTAINERS: Add myself to maintainer of dashdec
Steven Liu [Mon, 11 Sep 2017 14:40:46 +0000 (22:40 +0800)]
MAINTAINERS: Add myself to maintainer of dashdec

Add dash maintainer.

22 months agoChangelog: add vp9 tile threading support
Ilia Valiakhmetov [Sun, 10 Sep 2017 18:18:36 +0000 (01:18 +0700)]
Changelog: add vp9 tile threading support

Signed-off-by: Ilia Valiakhmetov <zakne0ne@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
22 months agovp9: fix compilation with threading disabled.
Ronald S. Bultje [Sun, 10 Sep 2017 03:24:31 +0000 (23:24 -0400)]
vp9: fix compilation with threading disabled.

22 months agoavcodec/jpeg2000dsp: Fix multiple integer overflows in ict_int()
Michael Niedermayer [Fri, 8 Sep 2017 21:29:12 +0000 (23:29 +0200)]
avcodec/jpeg2000dsp: Fix multiple integer overflows in ict_int()

Fixes: runtime error: signed integer overflow: 22553 * -188962 cannot be represented in type 'int'
Fixes: 3042/clusterfuzz-testcase-minimized-5174210131394560

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoavcodec/clearvideo: Only output a frame if one is coded in the packet
Michael Niedermayer [Sat, 9 Sep 2017 23:32:52 +0000 (01:32 +0200)]
avcodec/clearvideo: Only output a frame if one is coded in the packet

Fixes: Timeout (183 ms instead of about 20 sec)
Fixes: 3147/clusterfuzz-testcase-4870592182353920

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoavcodec/hevcdsp_template: Fix undefined shift in put_hevc_pel_bi_w_pixels
Michael Niedermayer [Sat, 9 Sep 2017 23:32:51 +0000 (01:32 +0200)]
avcodec/hevcdsp_template: Fix undefined shift in put_hevc_pel_bi_w_pixels

Fixes: runtime error: left shift of negative value -95
Fixes: 3077/clusterfuzz-testcase-minimized-4684917524922368

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoavcodec/diracdec: Fix overflow in DC computation
Michael Niedermayer [Sat, 9 Sep 2017 23:32:50 +0000 (01:32 +0200)]
avcodec/diracdec: Fix overflow in DC computation

Fixes: runtime error: signed integer overflow: 11896 + 2147483646 cannot be represented in type 'int'
Fixes: 3053/clusterfuzz-testcase-minimized-6355082062856192

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoadd missing ignore files
Jesse Liu [Sun, 10 Sep 2017 05:31:16 +0000 (13:31 +0800)]
add missing ignore files

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoavcodec/scpr: optimize shift loop.
Michael Niedermayer [Fri, 8 Sep 2017 21:29:13 +0000 (23:29 +0200)]
avcodec/scpr: optimize shift loop.

Speeds code up from 50sec to 15sec

Fixes Timeout
Fixes: 3242/clusterfuzz-testcase-5811951672229888

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agobuild: Skip generating .version files when cleaning
Diego Biurrun [Tue, 28 Feb 2017 21:12:00 +0000 (22:12 +0100)]
build: Skip generating .version files when cleaning

Signed-off-by: James Almer <jamrial@gmail.com>
22 months agoavfilter/vf_convolve: use av_clip_uint8
James Almer [Sun, 10 Sep 2017 01:02:25 +0000 (22:02 -0300)]
avfilter/vf_convolve: use av_clip_uint8

Fixes fate-source.

22 months agoavcodec/dirac_vlc: limit res_bits in APPEND_RESIDUE()
Michael Niedermayer [Sat, 9 Sep 2017 13:51:45 +0000 (15:51 +0200)]
avcodec/dirac_vlc: limit res_bits in APPEND_RESIDUE()

Fixes: runtime error: left shift of 1073741838 by 1 places cannot be represented in type 'int32_t' (aka 'int')
Fixes: 3279/clusterfuzz-testcase-minimized-4564805744590848

Suggested-by: <atomnuker>
Reviewed-by: <atomnuker>
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
22 months agoavfilter: add generic FFT video convolve filter
Paul B Mahol [Thu, 31 Aug 2017 10:07:58 +0000 (12:07 +0200)]
avfilter: add generic FFT video convolve filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
22 months agolavc/vaapi_encode_mpeg2: fix frame rate calc error when use time_base.
Jun Zhao [Wed, 6 Sep 2017 03:07:15 +0000 (23:07 -0400)]
lavc/vaapi_encode_mpeg2: fix frame rate calc error when use time_base.

fix frame rate calc error when use time_base.

Signed-off-by: Yun Zhou <yunx.z.zhou@intel.com>
Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
22 months agoAdd SUP/PGS subtitle muxer
Petri Hintukainen [Tue, 30 Sep 2014 08:01:17 +0000 (11:01 +0300)]
Add SUP/PGS subtitle muxer

Fixes ticket #2208

22 months agoavformat/dashdec: free resource allocated by xml
Steven Liu [Sat, 9 Sep 2017 00:34:07 +0000 (08:34 +0800)]
avformat/dashdec: free resource allocated by xml

modify from av_free to xmlFree

Suggested-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>