1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00
Go to file
wm4 39f01e346c mmaldec: be more tolerant against MMAL not returning decoded output
In some situations, MMAL won't return a decoded frame for certain input
frames. This can happen if a frame fails to decode, or if a packet does
not actually contain a complete frame. In these situations, we would
deadlock (or actually timeout) waiting for an expected output frame,
which is not ideal. On the other hand, there are situations where we
definitely have to block to avoid deadlocks. (This mess is a
consequence of trying to map MMAL's asynchronous and flexible
dataflow to libavcodec, which is more static and rigid.)

Solve this by doing a blocking wait only if the amount of buffered data
is too big. The whole purpose of the blocking wait is to avoid excessive
buffering of input data, so we can skip it if it appears to be low. The
consequence is that libavcodec can gracefully return no frame to the
API user.

We want to track the number of full packets to make our heuristic work.
But MMAL buffers are fixed-size, requiring splitting large packets. This
is why the previous commit is needed. We use the ..._FRAME_END flag to
remember packet boundaries, but MMAL does not preserve these buffer
flags when returning buffers to the user.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-10-04 19:34:04 +02:00
compat use a wrapper script to call MS link.exe to avoid mixing with /usr/bin/link.exe 2015-07-24 18:21:22 +03:00
doc Screenpresso SPV1 decoder 2015-09-30 16:45:11 +02:00
libavcodec mmaldec: be more tolerant against MMAL not returning decoded output 2015-10-04 19:34:04 +02:00
libavdevice Bump major versions of all libraries 2015-08-28 16:04:28 +02:00
libavfilter vf_framepack: Use av_image_copy() where appropriate 2015-09-29 14:33:01 +02:00
libavformat matroskaenc: Don't write a track language tag 2015-10-03 13:44:35 +02:00
libavresample avresample: Remove an unused variable 2015-09-29 14:33:01 +02:00
libavutil avutil/avstring: Inline some tiny functions 2015-10-03 13:45:37 +02:00
libswscale lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fields 2015-09-07 12:37:47 +02:00
presets presets: spelling error in libvpx 1080p50_60 2011-10-22 00:28:56 +02:00
tests checkasm: Fix the function name sorting algorithm 2015-10-03 13:38:03 +02:00
tools tools: Drop a stale header 2015-08-31 21:37:18 +02:00
.gitattributes Treat all '*.pnm' files as non-text file 2014-11-28 17:52:43 -05:00
.gitignore Checkasm: assembly testing and benchmarking tool 2015-07-12 16:39:07 +02:00
.travis.yml travis: fix dependencies 2015-09-12 12:29:27 +02:00
arch.mak ppc: vsx: Implement float_dsp 2015-05-31 12:07:11 +02:00
avconv_dxva2.c avconv_dxva2: add hevc support 2015-01-27 09:06:05 +01:00
avconv_filter.c avconv_filter: Use full named options 2015-09-13 17:34:45 +02:00
avconv_opt.c avconv: Make the private options discovery more manifest 2015-09-29 14:33:01 +02:00
avconv_vda.c avconv: vda: Unlock the pixel buffer once it is accessed 2015-07-09 00:10:13 +02:00
avconv_vdpau.c avconv_vdpau: allocate video surface of VDPAU-specified size 2014-12-25 20:47:49 +01:00
avconv.c lavc: Enable side data only packets by default 2015-09-12 13:38:31 +02:00
avconv.h Add a quality factor packet side data 2015-07-20 15:06:47 +01:00
avplay.c lavc: AV-prefix all codec capabilities 2015-07-27 15:24:58 +01:00
avprobe.c avprobe: Print the display matrix from per-stream sidedata 2015-05-02 22:09:09 +03:00
Changelog Screenpresso SPV1 decoder 2015-09-30 16:45:11 +02:00
cmdutils_common_opts.h avplay: Accept cpuflags option 2013-10-22 10:49:31 +02:00
cmdutils.c lavc: AV-prefix all codec capabilities 2015-07-27 15:24:58 +01:00
cmdutils.h avconv: use read_file() for reading the 2pass stats 2015-07-19 09:37:11 +02:00
common.mak checkasm: Always link statically 2015-07-21 23:22:42 +02:00
configure build: Add support for known custom allocators 2015-09-30 21:42:26 +02:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1 cosmetics: Delete empty lines at end of file. 2012-02-09 12:26:45 +01:00
COPYING.LGPLv3
CREDITS
INSTALL doc: clarify configure features 2011-04-07 02:54:12 +02:00
library.mak build: Support executable only ldflags 2014-07-21 22:18:35 +02:00
LICENSE license: Mention that vf_interlace is GPL, not LGPL 2014-08-28 19:47:43 +02:00
Makefile checkasm: Always link statically 2015-07-21 23:22:42 +02:00
README doc: Add more information in the README 2014-08-16 00:49:22 +02:00
README.md doc: Add travis badge 2015-09-14 00:19:08 +02:00
RELEASE Make the RELEASE file match with the most recent tag 2014-12-01 07:51:14 -05:00
version.sh Drop git- prefix from version labels 2011-06-19 19:41:23 +01:00

Libav

Build Status

Libav is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.

Libraries

  • libavcodec provides implementation of a wider range of codecs.
  • libavformat implements streaming protocols, container formats and basic I/O access.
  • libavutil includes hashers, decompressors and miscellaneous utility functions.
  • libavfilter provides a mean to alter decoded Audio and Video through chain of filters.
  • libavdevice provides an abstraction to access capture and playback devices.
  • libavresample implements audio mixing and resampling routines.
  • libswscale implements color conversion and scaling routines.

Tools

  • avconv is a command line toolbox to manipulate, convert and stream multimedia content.
  • avplay is a minimalistic multimedia player.
  • avprobe is a simple analisys tool to inspect multimedia content.
  • Additional small tools such as aviocat, ismindex and qt-faststart.

Documentation

The offline documentation is available in the doc/ directory.

The online documentation is available in the main website and in the wiki.

Examples

Conding examples are available in the doc/example directory.

License

Libav codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.