ffmpeg.git
5 months agoavfilter/vf_paletteuse: fix flags for alpha_threshold option
Paul B Mahol [Tue, 11 Dec 2018 16:55:05 +0000 (17:55 +0100)]
avfilter/vf_paletteuse: fix flags for alpha_threshold option

5 months agoconfigure: require the first stable version of libdav1d
James Almer [Tue, 11 Dec 2018 15:42:22 +0000 (12:42 -0300)]
configure: require the first stable version of libdav1d

Signed-off-by: James Almer <jamrial@gmail.com>
5 months agofate: add prog suffix in fate-mov-mp4-with-mov-in24-ver
Gyan Doshi [Mon, 10 Dec 2018 15:14:33 +0000 (20:44 +0530)]
fate: add prog suffix in fate-mov-mp4-with-mov-in24-ver

Prevent test failure with builds that set a suffix and/or
extension for the ffprobe binary

5 months agoos_support: define socket shutdown SHUT_xxx macros if they are not defined
Peter Ross [Sat, 24 Nov 2018 12:26:13 +0000 (23:26 +1100)]
os_support: define socket shutdown SHUT_xxx macros if they are not defined

this section has been moved into the CONFIG_NETWORK block, since it only
affects network enabled builds.

sys/socket.h (with WIN32 guard) is needed to check if the SHUT_xxx macro exists.

5 months agoavformat/dashenc: Used the movenc option skip_sidx instead of global_sidx
kjeyapal@akamai.com [Wed, 5 Dec 2018 06:18:40 +0000 (11:48 +0530)]
avformat/dashenc: Used the movenc option skip_sidx instead of global_sidx

Anyways the intended behaviour was to disable SIDX atom.

5 months agoavformat/movenc: Added an option to disable SIDX atom
kjeyapal@akamai.com [Thu, 6 Dec 2018 07:28:01 +0000 (12:58 +0530)]
avformat/movenc: Added an option to disable SIDX atom

5 months agodoc/indevs: fix hdvbuffer typo in iec61883 example
Lou Logan [Tue, 11 Dec 2018 00:17:57 +0000 (15:17 -0900)]
doc/indevs: fix hdvbuffer typo in iec61883 example

Option name is dvbuffer.

Signed-off-by: Lou Logan <lou@lrcd.com>
5 months agolavc/tiff: Fix leak of yuv_line in TiffContext.
Carl Hetherington [Mon, 10 Dec 2018 23:52:16 +0000 (23:52 +0000)]
lavc/tiff: Fix leak of yuv_line in TiffContext.

Signed-off-by: Carl Hetherington <cth@carlh.net>
5 months agolavd/v4l2: Use "int request" as second parameter for ioctl() on Android.
Carl Eugen Hoyos [Thu, 6 Dec 2018 22:34:54 +0000 (23:34 +0100)]
lavd/v4l2: Use "int request" as second parameter for ioctl() on Android.

Fixes build with new Android toolchain.

5 months agolavf/matroskadec: Do not use strncat() to limit copying a one-char constant.
Carl Eugen Hoyos [Mon, 10 Dec 2018 00:55:15 +0000 (01:55 +0100)]
lavf/matroskadec: Do not use strncat() to limit copying a one-char constant.

Instead add the character to the snprintf above as suggested by Mark.

Silences a warning:
libavformat/matroskadec.c: In function 'webm_dash_manifest_cues':
libavformat/matroskadec.c:3947:13: warning: 'strncat' specified bound 1 equals source length [-Wstringop-overflow=]
             strncat(buf, ",", 1);
             ^~~~~~~~~~~~~~~~~~~~

5 months agoavcodec/xpmdec: define constants
Paul B Mahol [Mon, 10 Dec 2018 20:38:08 +0000 (21:38 +0100)]
avcodec/xpmdec: define constants

5 months agoavcodec/xpmdec: fix small artifacts
Paul B Mahol [Mon, 10 Dec 2018 20:31:18 +0000 (21:31 +0100)]
avcodec/xpmdec: fix small artifacts

The max size of uint8_t subset is 223 not 220.

5 months agoavformat/gif: simplify signature writing
Paul B Mahol [Mon, 10 Dec 2018 17:36:11 +0000 (18:36 +0100)]
avformat/gif: simplify signature writing

5 months agolavc/xpmdec: Allow more colours per character.
Carl Eugen Hoyos [Thu, 6 Dec 2018 18:09:56 +0000 (19:09 +0100)]
lavc/xpmdec: Allow more colours per character.

Fixes ticket #6234.

5 months agoavcodec/gifdec: truncate too big width/height for invalid gif files
Paul B Mahol [Mon, 10 Dec 2018 12:32:10 +0000 (13:32 +0100)]
avcodec/gifdec: truncate too big width/height for invalid gif files

Fixes #6874.

5 months agoavformat/mxfenc: calculate and store DAR from user SAR
Paul B Mahol [Mon, 10 Dec 2018 09:15:27 +0000 (10:15 +0100)]
avformat/mxfenc: calculate and store DAR from user SAR

5 months agoavformat/mxfenc: allow muxing prores
Paul B Mahol [Wed, 5 Dec 2018 17:10:37 +0000 (18:10 +0100)]
avformat/mxfenc: allow muxing prores

5 months agoavcodec/proresdec2: allow changing resolution
Paul B Mahol [Wed, 5 Dec 2018 17:50:33 +0000 (18:50 +0100)]
avcodec/proresdec2: allow changing resolution

5 months agoavformat: add gif pipe demuxer
Paul B Mahol [Sat, 8 Dec 2018 12:06:31 +0000 (13:06 +0100)]
avformat: add gif pipe demuxer

5 months agoavcodec: add gif parser
Paul B Mahol [Sat, 8 Dec 2018 11:31:19 +0000 (12:31 +0100)]
avcodec: add gif parser

5 months agolavfi/vf_scale_vaapi: add scaling mode setting support.
Jun Zhao [Wed, 12 Sep 2018 12:14:58 +0000 (20:14 +0800)]
lavfi/vf_scale_vaapi: add scaling mode setting support.

before this change, scale_vaapi hard coding the scaling mode, add a
new option "mode" to setting the scaling mode, it can be use to change
scaling algorithm for performance/quality trade off.

Note: VA_FILTER_SCALING_NL_ANAMORPHIC(nolinear ananorphic scaling
algorithm) doesn't support by i965/iHD driver now, add this just for
completeness.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
5 months agoavformat/hlsenc : Added an option to ignore IO errors
Karthick J [Mon, 10 Dec 2018 06:19:23 +0000 (14:19 +0800)]
avformat/hlsenc : Added an option to ignore IO errors

Useful for long duration runs with network output

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
5 months agoavformat/hlsenc: Handled error from ff_http_do_new_request() function
Karthick J [Mon, 10 Dec 2018 06:17:55 +0000 (14:17 +0800)]
avformat/hlsenc: Handled error from ff_http_do_new_request() function

This patch fixes the segmentation fault issues due to
unhandled errors from ff_http_do_new_request function.

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
5 months agolavc/qsvenc: replace assert with error return
Linjie Fu [Sun, 9 Dec 2018 13:30:38 +0000 (21:30 +0800)]
lavc/qsvenc: replace assert with error return

Fix the (m)jpeg encoding regression issue as decription in tikect #7593,
due to bs->FrameType is not set in such case in
MSDK (https://github.com/Intel-Media-SDK/MediaSDK/issues/970).
(And assert on a value coming from an external library is not proper.)

Add default type check for bs->FrameType, and return invalid data error in function
ff_qsv_encode to avoid using uninitialized value.

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
5 months agolavc/cbs_vp9: Make variable prob unsigned.
Carl Eugen Hoyos [Mon, 10 Dec 2018 01:18:56 +0000 (02:18 +0100)]
lavc/cbs_vp9: Make variable prob unsigned.

Silences a warning with clang:
libavcodec/cbs_vp9_syntax_template.c:220:17: warning: implicit conversion from 'int' to 'int8_t' (aka 'signed char')
      changes value from 255 to -1

5 months agolavc/decode: Initialize return value for get_format() failure.
Carl Eugen Hoyos [Thu, 6 Dec 2018 22:17:13 +0000 (23:17 +0100)]
lavc/decode: Initialize return value for get_format() failure.

Silences a warning:
libavcodec/decode.c:1378:13: warning: variable 'ret' is used uninitialized whenever 'if' condition is true

5 months agoavcodec: bump micro version after d12d4d4515
James Almer [Sun, 9 Dec 2018 22:28:37 +0000 (19:28 -0300)]
avcodec: bump micro version after d12d4d4515

Signed-off-by: James Almer <jamrial@gmail.com>
5 months agoavformat/mxfdec: fix indentation
Paul B Mahol [Sun, 9 Dec 2018 19:10:33 +0000 (20:10 +0100)]
avformat/mxfdec: fix indentation

5 months agoqsvdec: Fix running with assert_level > 0
Mark Thompson [Sun, 11 Nov 2018 15:32:15 +0000 (15:32 +0000)]
qsvdec: Fix running with assert_level > 0

Assertion avctx->codec_id != AV_CODEC_ID_NONE failed at src/libavcodec/parser.c:128

The setting on the internal AVCodecContext used for parsing only is
otherwise irrelevant, so just set it to avoid the assert.

5 months agoavcodec/libaomenc: add row-mt option
James Almer [Sat, 8 Dec 2018 23:14:12 +0000 (20:14 -0300)]
avcodec/libaomenc: add row-mt option

Default to disable, same as aomenc.

Fixes ticket #7598

Signed-off-by: James Almer <jamrial@gmail.com>
5 months agoavfilter/vf_showinfo: allow checksums calculation to be disabled
Paul B Mahol [Tue, 4 Dec 2018 20:39:32 +0000 (21:39 +0100)]
avfilter/vf_showinfo: allow checksums calculation to be disabled

Fixes #6987.

5 months agolavfi/buffersink: fix abuffersink flag setting issue
Jun Zhao [Sun, 9 Dec 2018 14:30:41 +0000 (22:30 +0800)]
lavfi/buffersink: fix abuffersink flag setting issue

abuffersink need to setting AV_OPT_FLAG_AUDIO_PARAM flag.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
5 months agoavformat/dhav: export average frame rate too
Paul B Mahol [Sun, 9 Dec 2018 09:49:00 +0000 (10:49 +0100)]
avformat/dhav: export average frame rate too

5 months agoavcodec/jpeg2000dec: Skip DWT if nothing is coded
Michael Niedermayer [Sat, 1 Dec 2018 23:35:49 +0000 (00:35 +0100)]
avcodec/jpeg2000dec: Skip DWT if nothing is coded

Improves speed in uncommon case

Fixes: Timeout
Fixes: 10964/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5132066034286592

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 months agoavcodec/dxv: Check that there is enough data to decompress
Michael Niedermayer [Sat, 1 Dec 2018 20:41:01 +0000 (21:41 +0100)]
avcodec/dxv: Check that there is enough data to decompress

Fixes: Timeout
Fixes: 10979/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DXV_fuzzer-6178582203203584

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 months agodoc/codecs: Do not mention a removed flags.
Carl Eugen Hoyos [Sat, 8 Dec 2018 10:29:19 +0000 (11:29 +0100)]
doc/codecs: Do not mention a removed flags.

5 months agodoc/faq: Fix flags for possible video quality improvements.
Carl Eugen Hoyos [Sat, 8 Dec 2018 10:28:01 +0000 (11:28 +0100)]
doc/faq: Fix flags for possible video quality improvements.

Reported-by: Ulf Zibis
5 months agodoc: vapoursynth
Gyan Doshi [Sat, 8 Dec 2018 10:03:57 +0000 (15:33 +0530)]
doc: vapoursynth

Add entry in external library list and demuxers.

5 months agoFix bug in mpegts muxer which affects KLV async stream generation.
Artyom Lebedev [Fri, 7 Dec 2018 09:48:28 +0000 (11:48 +0200)]
Fix bug in mpegts muxer which affects KLV async stream generation.

Fixes ticket #7597.

Signed-off-by: Peter Ross <pross@xvid.org>
5 months agoavformat/mxfdec: set codec_tag for prores codec
Paul B Mahol [Wed, 5 Dec 2018 17:49:41 +0000 (18:49 +0100)]
avformat/mxfdec: set codec_tag for prores codec

5 months agoavcodec/proresdec2: add new line at end of debug message
Paul B Mahol [Fri, 7 Dec 2018 19:05:37 +0000 (20:05 +0100)]
avcodec/proresdec2: add new line at end of debug message

5 months agoavcodec/dpx: fix spotted code style issues
Paul B Mahol [Thu, 6 Dec 2018 19:33:09 +0000 (20:33 +0100)]
avcodec/dpx: fix spotted code style issues

5 months agoavcodec/dpx: add support for special encoding
Paul B Mahol [Thu, 6 Dec 2018 19:31:51 +0000 (20:31 +0100)]
avcodec/dpx: add support for special encoding

5 months agoavcodec/dpx: improve decoding of 10 bit gray images
Paul B Mahol [Thu, 6 Dec 2018 19:28:22 +0000 (20:28 +0100)]
avcodec/dpx: improve decoding of 10 bit gray images

5 months agoavcodec/dpx: add support for another gray10 variant
Paul B Mahol [Thu, 6 Dec 2018 19:25:33 +0000 (20:25 +0100)]
avcodec/dpx: add support for another gray10 variant

5 months agoavcodec/dpx: parse input device name
Paul B Mahol [Thu, 6 Dec 2018 19:23:37 +0000 (20:23 +0100)]
avcodec/dpx: parse input device name

5 months agoavcodec/dpx: parse image creator
Paul B Mahol [Thu, 6 Dec 2018 19:19:48 +0000 (20:19 +0100)]
avcodec/dpx: parse image creator

5 months agoavcodec/dpx: check version of format header too
Paul B Mahol [Wed, 5 Dec 2018 13:25:17 +0000 (14:25 +0100)]
avcodec/dpx: check version of format header too

5 months agodoc/general: rearrange libraries in alphabetical order
Gyan Doshi [Fri, 7 Dec 2018 12:26:00 +0000 (17:56 +0530)]
doc/general: rearrange libraries in alphabetical order

5 months agolavc/qsvenc: add an option to set h264 pps for every frame
Zhong Li [Thu, 25 Oct 2018 11:14:16 +0000 (19:14 +0800)]
lavc/qsvenc: add an option to set h264 pps for every frame

RepeatPPS is enabled by default in mfx. It is not necessary mostly and
wasting encoding bits.
Add an option to control it and disable it by default.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: Zhong Li <zhong.li@intel.com>
5 months agolavc/qsvenc: dump log for frame rate
Zhong Li [Mon, 5 Nov 2018 08:02:57 +0000 (16:02 +0800)]
lavc/qsvenc: dump log for frame rate

Signed-off-by: Zhong Li <zhong.li@intel.com>
5 months agolavc/qsvenc: make hevc alignment same as h264 for 1.19+ version
Zhong Li [Thu, 25 Oct 2018 10:44:37 +0000 (18:44 +0800)]
lavc/qsvenc: make hevc alignment same as h264 for 1.19+ version

It is to clean up to the code and To-Do list.

Signed-off-by: Zhong Li <zhong.li@intel.com>
5 months agolavc/qsvenc: remove redundant code
Zhong Li [Thu, 25 Oct 2018 10:23:00 +0000 (18:23 +0800)]
lavc/qsvenc: remove redundant code

Signed-off-by: Zhong Li <zhong.li@intel.com>
5 months agolavc/proresdec.h: Include a missing header
Carl Eugen Hoyos [Thu, 6 Dec 2018 19:14:09 +0000 (20:14 +0100)]
lavc/proresdec.h: Include a missing header

Fixes make checkheaders

5 months agoavcodec/ppc/hevcdsp: Fix build failures with powerpc-linux-gnu-gcc-4.8 with --disable...
Michael Niedermayer [Tue, 4 Dec 2018 15:29:40 +0000 (16:29 +0100)]
avcodec/ppc/hevcdsp: Fix build failures with powerpc-linux-gnu-gcc-4.8 with --disable-optimizations

The affected functions could also be changed into macros, this is the
smaller change to fix it though. And avoids (probably) less readable macros
The extra code should be optimized out when optimizations are done as all values
are known at build after inlining.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 months agodoc: libmodplug
Gyan Doshi [Wed, 5 Dec 2018 14:02:05 +0000 (19:32 +0530)]
doc: libmodplug

Add entry in external library list and demuxers.

5 months agoavcodec/msvideo1: Check for too small dimensions
Michael Niedermayer [Sat, 1 Dec 2018 21:16:19 +0000 (22:16 +0100)]
avcodec/msvideo1: Check for too small dimensions

Such low resolution would result in empty output as a minimum of 4x4 is needed
We could also check for multiple of 4 dimensions but that is not needed

Fixes: Timeout
Fixes: 11191/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSVIDEO1_fuzzer-5739529588178944

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 months agoavcodec/wmv2dec: Skip I frame if its smaller than 1/8 of the minimal size
Michael Niedermayer [Tue, 27 Nov 2018 22:37:03 +0000 (23:37 +0100)]
avcodec/wmv2dec: Skip I frame if its smaller than 1/8 of the minimal size

Frames that small are not valid and of limited use for error concealment, while
being very computationally intensive to process.

Fixes: Timeout
Fixes: 11168/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV2_fuzzer-5733782032744448

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 months agoavcodec/msmpeg4dec: Skip frame if its smaller than 1/8 of the minimal size
Michael Niedermayer [Thu, 29 Nov 2018 01:32:10 +0000 (02:32 +0100)]
avcodec/msmpeg4dec: Skip frame if its smaller than 1/8 of the minimal size

Frames that small are not valid and of limited use for error concealment, while
being very computationally intensive to process.

Fixes: Timeout
Fixes: 11318/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSMPEG4V1_fuzzer-5710884555456512

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 months agoavcodec/dpx: add support for 10bit gray
Paul B Mahol [Tue, 4 Dec 2018 20:04:05 +0000 (21:04 +0100)]
avcodec/dpx: add support for 10bit gray

5 months agodoc: remove licensing claims for chromaprint and libgme
Gyan Doshi [Tue, 4 Dec 2018 14:43:57 +0000 (20:13 +0530)]
doc: remove licensing claims for chromaprint and libgme

5 months agoavcodec/prores_aw : add 4444 xq support
Martin Vignali [Sun, 2 Dec 2018 20:40:56 +0000 (21:40 +0100)]
avcodec/prores_aw : add 4444 xq support

5 months agoavcodec/prores_aw : only set color prim, trc, space values if supported
Martin Vignali [Sun, 2 Dec 2018 20:39:18 +0000 (21:39 +0100)]
avcodec/prores_aw : only set color prim, trc, space values if supported

set to unspecified if frame have another value

5 months agoavcodec/prores_aw : add vendor option
Martin Vignali [Sat, 24 Nov 2018 21:46:59 +0000 (22:46 +0100)]
avcodec/prores_aw : add vendor option

code come from prores_ks

5 months agoavcodec/utils : add ff_int_from_list_or_default func
Martin Vignali [Sun, 2 Dec 2018 20:36:24 +0000 (21:36 +0100)]
avcodec/utils : add ff_int_from_list_or_default func

to check valid value, or return default_value

5 months agodoc: libgme
Gyan Doshi [Tue, 4 Dec 2018 12:35:53 +0000 (18:05 +0530)]
doc: libgme

Add entry in external library list and add details to demuxer entry.

5 months agodoc: chromaprint
Gyan Doshi [Tue, 4 Dec 2018 11:04:38 +0000 (16:34 +0530)]
doc: chromaprint

Add entry in external library list and add details to muxer entry.

5 months agolavf/dashenc: Write media trailers when DASH trailer is written.
Andrey Semashev [Mon, 3 Dec 2018 11:18:31 +0000 (14:18 +0300)]
lavf/dashenc: Write media trailers when DASH trailer is written.

This commit ensures that all (potentially, long) filesystem activity is
performed when the user calls av_write_trailer on the DASH libavformat
context, not when freeing the context. Also, this defers media segment
deletion until after the media trailers are written.

5 months agoswscale/ppc: Move VSX-using code to its own file
Lauri Kasanen [Mon, 26 Nov 2018 12:24:15 +0000 (14:24 +0200)]
swscale/ppc: Move VSX-using code to its own file

Passes fate on LE (with "lavc/jrevdct: Avoid an aliasing violation" applied).

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Tested-by: Michael Kostylev on BE
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 months agoavcodec/r210dec: fix r10x decoding
Paul B Mahol [Mon, 3 Dec 2018 22:34:05 +0000 (23:34 +0100)]
avcodec/r210dec: fix r10x decoding

5 months agoavcodec/dnxhddec: use init_get_bits8()
Paul B Mahol [Mon, 3 Dec 2018 18:44:49 +0000 (19:44 +0100)]
avcodec/dnxhddec: use init_get_bits8()

5 months agolavc: Bump version for r210 pix_fmt change.
Carl Eugen Hoyos [Mon, 3 Dec 2018 18:10:42 +0000 (19:10 +0100)]
lavc: Bump version for r210 pix_fmt change.

5 months agoavcodec/r210: use correct pixel format
Paul B Mahol [Sun, 2 Dec 2018 16:49:03 +0000 (17:49 +0100)]
avcodec/r210: use correct pixel format

5 months agoconfigure: check if dlfcn.h is present for ladspa and frei0r, if not abort early
Paul B Mahol [Sun, 2 Dec 2018 17:50:21 +0000 (18:50 +0100)]
configure: check if dlfcn.h is present for ladspa and frei0r, if not abort early

Fixes #4517.

5 months agoavfilter/vf_overlay: fix filtering with negative y
Paul B Mahol [Mon, 3 Dec 2018 09:00:01 +0000 (10:00 +0100)]
avfilter/vf_overlay: fix filtering with negative y

5 months agolavc/libdavs2: fix function return value error
hwrenx [Mon, 3 Dec 2018 06:42:43 +0000 (14:42 +0800)]
lavc/libdavs2: fix function return value error

Signed-off-by: hwrenx <hwrenx@126.com>
5 months agolavc/libdavs2: output delayed frames
hwrenx [Mon, 3 Dec 2018 06:37:42 +0000 (14:37 +0800)]
lavc/libdavs2: output delayed frames

Signed-off-by: hwrenx <hwrenx@126.com>
5 months agolibdavs2: update api version and enable avx option
hwrenx [Mon, 3 Dec 2018 06:37:05 +0000 (14:37 +0800)]
libdavs2: update api version and enable avx option

Signed-off-by: hwrenx <hwrenx@126.com>
5 months agoRevert "lavf/dashenc: Write media trailers when DASH trailer is written."
Karthick J [Mon, 3 Dec 2018 05:58:18 +0000 (11:28 +0530)]
Revert "lavf/dashenc: Write media trailers when DASH trailer is written."

This reverts commit e444b3b184f36e3c97bb3489822f6b05ccb848a8.
Causing build error due to rebasing. Sorry for about it.

5 months agolavf/dashenc: Use avpriv_io_delete to delete files.
Andrey Semashev [Fri, 30 Nov 2018 09:03:45 +0000 (12:03 +0300)]
lavf/dashenc: Use avpriv_io_delete to delete files.

This fixes incorrect handling of file pseudo-URIs (i.e. when the filename
starts with "file:").

5 months agolavf/dashenc: Write media trailers when DASH trailer is written.
Andrey Semashev [Thu, 29 Nov 2018 18:28:32 +0000 (21:28 +0300)]
lavf/dashenc: Write media trailers when DASH trailer is written.

This commit ensures that all (potentially, long) filesystem activity is
performed when the user calls av_write_trailer on the DASH libavformat
context, not when freeing the context. Also, this defers media segment
deletion until after the media trailers are written.

5 months agoavformat/dashenc: Added proper logging when io_open fails for write
Karthick J [Fri, 30 Nov 2018 05:20:09 +0000 (10:50 +0530)]
avformat/dashenc: Added proper logging when io_open fails for write

5 months agolavf: add transpose_opencl filter
Ruiling Song [Wed, 28 Nov 2018 02:27:38 +0000 (10:27 +0800)]
lavf: add transpose_opencl filter

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
5 months agohwcontext_opencl: Use correct function to enumerate devices
Mark Thompson [Wed, 28 Nov 2018 00:16:30 +0000 (00:16 +0000)]
hwcontext_opencl: Use correct function to enumerate devices

Also assert that all required functions are present.

5 months agoconfigure: Avoid use of nonstandard features of sed
Mark Thompson [Sun, 2 Dec 2018 23:31:50 +0000 (23:31 +0000)]
configure: Avoid use of nonstandard features of sed

Standard sed does not support EREs.

Fixes #7310.

5 months agotrace_headers: Update documentation
Andreas Rheinhardt [Sat, 1 Dec 2018 07:52:55 +0000 (08:52 +0100)]
trace_headers: Update documentation

It also supports AV1 and (M)JPEG.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
5 months agocbs_h265: Fix Time Code SEI syntax
Andreas Rheinhardt [Sat, 1 Dec 2018 07:52:54 +0000 (08:52 +0100)]
cbs_h265: Fix Time Code SEI syntax

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
5 months agoForce aix nm to work on 32 and 64 bit binaries by default.
Carl Eugen Hoyos [Sun, 2 Dec 2018 14:18:46 +0000 (15:18 +0100)]
Force aix nm to work on 32 and 64 bit binaries by default.

5 months agoavformat/dashenc: Added an option to ignore io errors
kjeyapal@akamai.com [Wed, 28 Nov 2018 17:06:17 +0000 (22:36 +0530)]
avformat/dashenc: Added an option to ignore io errors

When dashenc has to run for long duration(say 24x7 live stream), one can enable this option to ignore the io failure of few segment's upload due to an intermittent network issues.
When the network connection recovers dashenc will continue with the upload of the current segments, leading to the recovery of the stream.

5 months agoavformat/dashenc: Handled the error from dashenc_io_open()
kjeyapal@akamai.com [Wed, 28 Nov 2018 17:06:16 +0000 (22:36 +0530)]
avformat/dashenc: Handled the error from dashenc_io_open()

5 months agolavf/dashenc: Delete HLS manifests on trailer writing if remove_at_exit is set.
Andrey Semashev [Wed, 28 Nov 2018 11:36:09 +0000 (14:36 +0300)]
lavf/dashenc: Delete HLS manifests on trailer writing if remove_at_exit is set.

This fixes HLS manifests being left behind if remove_at_exit is set.

5 months agolavf/dashenc: Don't put non-mp4 streams in HLS manifests.
Andrey Semashev [Wed, 28 Nov 2018 11:36:08 +0000 (14:36 +0300)]
lavf/dashenc: Don't put non-mp4 streams in HLS manifests.

The only native HLS implementation in the wild (Safari browser) doesn't
support WebM. And at least some MSE-based players (e.g. shaka-player)
cannot handle WebM media segments when playing HLS. So just skip non-mp4
streams from HLS manifests. Note that such streams will still be described
by the DASH manifest and therefore consumed by players supporting DASH.

5 months agotests/ref/fate/vc1test_smm0005: Add a newline.
Carl Eugen Hoyos [Sun, 2 Dec 2018 13:17:53 +0000 (14:17 +0100)]
tests/ref/fate/vc1test_smm0005: Add a newline.

Fixes fate-pixelutils on aix.

5 months agoavcodec/proresdec : add 12b decoding
Martin Vignali [Tue, 27 Nov 2018 21:41:38 +0000 (22:41 +0100)]
avcodec/proresdec : add 12b decoding

based on patch by Kieran Kunhya

ticket 7163

5 months agoavcodec/proresdec : add 12b prores idct
Martin Vignali [Sat, 17 Nov 2018 22:37:50 +0000 (23:37 +0100)]
avcodec/proresdec : add 12b prores idct

based on patch by Kieran Kunhya

5 months agoavcodec/proresdec : add unpack alpha 12 func
Martin Vignali [Sat, 17 Nov 2018 22:37:23 +0000 (23:37 +0100)]
avcodec/proresdec : add unpack alpha 12 func

5 months agoavcodec/proresdec : make inline func for unpack alpha
Martin Vignali [Sat, 17 Nov 2018 22:37:00 +0000 (23:37 +0100)]
avcodec/proresdec : make inline func for unpack alpha

5 months agoavcodec/proresdec : put unpack alpha func in prores ctx
Martin Vignali [Sat, 17 Nov 2018 22:36:23 +0000 (23:36 +0100)]
avcodec/proresdec : put unpack alpha func in prores ctx

5 months agoavcodec/proresdsp indent after prev commit
Martin Vignali [Sat, 17 Nov 2018 22:35:52 +0000 (23:35 +0100)]
avcodec/proresdsp indent after prev commit

5 months agoavcodec/proresdec : rename dsp part for 10b and check dspinit for supported bits...
Martin Vignali [Sat, 17 Nov 2018 22:35:35 +0000 (23:35 +0100)]
avcodec/proresdec : rename dsp part for 10b and check dspinit for supported bits per raw sample

based on patch by Kieran Kunhya