summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* libavdevice/decklink: add support for -sources and -sinks argumentsDevin Heitmueller2017-10-10
| | | | | | | | | | | | | | | Add support for enumerating the sources/sinks via the ffmpeg command line options, as opposed to having to create a real pipeline and use the "-list_devices" option which does exit() after dumping out the options. Note that this patch preserves the existing "-list_devices" option, but now shares common code for the actual enumeration. Updated to reflect feedback from Marton Balint <cus@passwd.hu>. Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* Makefile: generate stripped CLI tools directly instead of copying unstripped ↵Marton Balint2017-10-10
| | | | | | | | ones first Now works with --disable-stripping. Signed-off-by: Marton Balint <cus@passwd.hu>
* fate: update fate-api reference files after 71e2ec017aJames Almer2017-10-09
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* build: prevent SDL2 from polluting global cflags and extralibsJames Almer2017-10-09
| | | | | | | | | Remove the SDL_main define from the global cflags but not from the ffplay cflags, and the -mwindows linker option from extralibs instead of overriding it with the addition of -mconsole. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* lavc/vaapi_decode: fix profile search when profile mismatch is allowedJun Zhao2017-10-09
| | | | | | | | When profile mismatch is allowed, use the highest supported profile for VAAPI decoding. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* lavc: enable hwaccel_flags optionJun Zhao2017-10-09
| | | | | | | Enable per-stream hwaccel_flags. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* avcodec/wmaprodec: support multichannel XMA stream configurationsbnnm2017-10-09
| | | | | | Signed-off-by: bnnm <bananaman255@gmail.com> Now accepts any combination of 1/2ch streams, described in the RIFF chunks/extradata
* avcodec/dca_core: always limit frame size to data sizefoo862017-10-09
| | | | | Silences pointless error message when decoding DTS-in-WAV stream with excessive frame size stored in header.
* avcodec/dca_parser: revert to conservative sync distance estimationfoo862017-10-09
| | | | | | | Fixes regression introduced by commit a0349ae27c127df8c72de1c30dc4090360ec7ef4 when parsing 14-bit streams with excessive frame size stored in header. Fixes ticket #6723.
* lavf/adp: Fix the probe function on systems with signed char.Carl Eugen Hoyos2017-10-09
|
* configure: Disable -Wbool-operation using check_disable_warning().Carl Eugen Hoyos2017-10-09
| | | | Suggested-by: James Almer
* Revert "configure: Disable -Wbool-operation."Mark Thompson2017-10-09
| | | | | | | | | | This reverts commit c2d155e11ee5ec732d471982f2dee43703bcd5a7. GCC 6 incorrectly passes the configure test and then logs many warnings of the form: src/libavformat/dump.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-bool-operation’
* hwcontext_vaapi: Add support for mapping to DRM objectsMark Thompson2017-10-09
| | | | Uses vaExportSurfaceHandle() from libva2.
* hwcontext: Perform usual initialisation on derived device contextsMark Thompson2017-10-09
| | | | | | | The initialisation should be common. For libmfx, it was previously happening in the derivation function and this moves it out. For VAAPI, it fixes some failures when deriving from a DRM device because this initialisation did not run.
* hwcontext_vaapi: Set message callbacks on internally-created devicesMark Thompson2017-10-09
| | | | | The message callbacks are library-safe in libva2, so we can now use them.
* hwcontext_vaapi: Factorise out common connection codeMark Thompson2017-10-09
| | | | | This was duplicated between normal device creation and creation by derivation from a DRM device.
* vaapi: Always free parameter buffers after vaEndPicture() with libva2Mark Thompson2017-10-09
| | | | | | This is an ABI change in libva2: previously the Intel driver had this behaviour and it was implemented as a driver quirk, but now it is part of the specification so all drivers must do it.
* vaapi: Remove H.264 baseline profileMark Thompson2017-10-09
| | | | | | This has been deprecated in libva2 because hardware does not and will not support it. Therefore never consider it for decode, and for encode assume the user meant constrained baseline profile instead.
* configure: Add config option for libva2 (VAAPI 1)Mark Thompson2017-10-09
|
* configure: disable libxcb dependent features if libxcb is not enabledJames Almer2017-10-08
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavu/opt: Use "&&" instead of "*" in boolean expression.Carl Eugen Hoyos2017-10-08
| | | | | Fixes the following warning: libavutil/opt.c:101:47: warning: '*' in boolean context, suggest '&&' instead
* configure: Disable -Wbool-operation.Carl Eugen Hoyos2017-10-08
| | | | Requested-by: Ronald and Derek
* lavd/decklink_dec: Do not claim to output transparency information.Carl Eugen Hoyos2017-10-08
|
* ffmpeg: always use single threaded decoding for attached picturesMarton Balint2017-10-08
| | | | | | | | | | | | | | | | | | Since af1761f7b5b1b72197dc40934953b775c2d951cc ffmpeg waits for a frame in each stream before writing the output header. If we are using threaded decoding for attached pictures, we have to read till EOF to be able to finally flush the decoder and output the decoded frame. This essentially makes ffmpeg buffer all non-attached picture packets, which will cause a "Too many packets buffered for output stream" eventually. By forcing single threaded decoding, we get a frame from a single packet as well and we can avoid the error. Fixes part of ticket #6375: ffmpeg -i 46564100.mp3 -acodec libmp3lame -ab 128k -ac 2 out.mp3 Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* lavc: add support for OpenJPEG 2.3.0Michael Bradshaw2017-10-08
| | | | Signed-off-by: Michael Bradshaw <mjbshaw@google.com>
* lavu/utils: Use "__asm__" like everywhere else in the codebase.Carl Eugen Hoyos2017-10-08
|
* lavfi: Rename local variables "main" as "master".Carl Eugen Hoyos2017-10-07
| | | | | Silences several warnings: main is usually a function
* lavf/rtpenc: Add support for little-endian G.726.Carl Eugen Hoyos2017-10-07
|
* lavf/sdp: Fix MIME-type for big-endian G.726.Carl Eugen Hoyos2017-10-07
| | | | | RFC 3551 defines "G726" for little-endian ("right-justified") G.726 and announces "AAL2-G726" for big-endian ("left-justified") G.726.
* lavfi/avfilter.c: Correct guess_status_pts to account for differing link ↵Sasi Inguva2017-10-07
| | | | | | timebases. Signed-off-by: Sasi Inguva <isasi@google.com>
* lavf/img2dec: Auto-detect svg images.Carl Eugen Hoyos2017-10-07
|
* avformat/mp3enc: flush buffered packets if referencing failsJames Almer2017-10-06
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/v4l2: fix single plane decodingJorge Ramirez-Ortiz2017-10-06
|
* avdevice/decklink_dec: fix extracting lumaMarton Balint2017-10-06
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/vf_fps: add eof_action filter optionTobias Rapp2017-10-06
| | | | | | | | | | | | | | | Allows to specify the action to be performed when reading the last frame from the internal FIFO buffer. By default the last frame is written to filter output depending on the timestamp rounding method. When using "pass" action the last frame is passed through if input duration has not been reached yet. Examples using an input file with 25Hz, 1.4sec duration: - "fps=fps=1:round=near" generates an output file of 1sec - "fps=fps=1:round=near:eof_action=pass" generates an output file of 2sec Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* rtsp: Move message parsing to a separate functionLuca Barbato2017-10-06
| | | | | | | | Make easier to handle the polling function before we implement full threading support. (cherry picked from libav commit ca960161f087ca38267b88ce90592010c59584f1) Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/mips: Cleanup unused functionsKaustubh Raste2017-10-06
| | | | | | 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>
* avformat: fix id3 chaptersLukas Stabe2017-10-05
| | | | | | | | | | | These changes store id3 chapter data in ID3v2ExtraMeta and introduce ff_id3v2_parse_chapters to parse them into the format context if needed. Encoders using ff_id3v2_read, which previously parsed chapters into the format context automatically, were adjusted to call ff_id3v2_parse_chapters. Signed-off-by: wm4 <nfxjfg@googlemail.com>
* build: add install targets for the examplesJames Almer2017-10-05
| | | | | | | | | Split it off from install-data. Among other things, this prevents spamming triplicate log lines during install. Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/vf_fps: clean-up filter optionsTobias Rapp2017-10-05
| | | | | | | Add missing AV_OPT_FLAG_FILTERING_PARAM flag to "start_time" option. Fix indent of "round" named constants and clear unused field values. Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* doc/filters: align order of fps filter options to implementationTobias Rapp2017-10-05
| | | | | | | Align order of "start_time" option within fps filter documentation to actual implementation. Also fix some documentation cosmetics. Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* lavc/v4l2: Fix printf format for int64_tMark Thompson2017-10-05
|
* avformat/wavenc: replace literal numbers with enum constantsTobias Rapp2017-10-05
| | | | Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* x86/blockdsp: use three operand form for an instructionJames Almer2017-10-04
| | | | Fixes assembling with old yasm.
* avcodec/x86/lossless_videoencdsp: Fix warning: signed dword value exceeds boundsMichael Niedermayer2017-10-05
| | | | | | | Add () to regsize define Suggested-by: Henrik Gramner <henrik@gramner.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/x86/lossless_videoencdsp: Fix handling of small widthsMichael Niedermayer2017-10-05
| | | | | | | | | | | | Fixes out of array access Fixes: crash-huf.avi Regression since: 6b41b4414934cc930468ccd5db598dd6ef643987 This could also be fixed by adding checks in the C code that calls the dsp Found-by: Zhibin Hu and 连一汉 <lianyihan@360.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/v4l2: set sizeimage param for non-raw buffers [fixes #6716]Jorge Ramirez-Ortiz2017-10-04
| | | | | | | | | | | | | | | | | Some V4L2 drivers fail to allocate buffers when sizeimage is not set to a max value. This is indeed the case for s5p-mfc [1] Most drivers should be able to calculate this value from the frame dimensions and format - or at least have their own default. However since this work around should not impact those drivers doing the "right thing" this commit just provides such a default. The calculations were extracted from the v4l2 driver used to develop the ffmpeg v4l2_m2m support [2]. See venc.c and vdec.c [1] linux.git/drivers/media/platform/s5p-mfc [2] linux.git/drivers/media/platform/qcom/venus/
* lavc/v4l2: Mark static const tables as suchMark Thompson2017-10-04
|
* lavc/v4l2: Remove use of lfind()Mark Thompson2017-10-04
| | | | | This is not present in older bionic and therefore fails to build there, and the code is much simpler without it anyway.
* configure: fix detecting libdl when dlsym requires extra linker flagsJames Almer2017-10-04
| | | | Regression since 84b3f53acadced2dd31f6be95b491b25183b8c22.