No description
Find a file
wm4 68b6a5efbf avformat/matroskadec: fix handling of recursive SeekHead elements
When matroska_execute_seekhead() is called, it goes through the list of
seekhead entries and attempts to read elements not read yet. When doing
this, the parser can find further SeekHead elements, and will extend the
matroska->seekhead list. This can lead to a (practically) infinite loop
with certain broken files. (Maybe it can happen even with valid files.
The demuxer doesn't seem to check correctly whether an element has
already been read.)

Fix this by ignoring elements that were added to the seekhead field
during executing seekhead entries.

This does not fix the possible situation when multiple SeekHead elements
after the file header (i.e. occur after the "before_pos" file position)
point to the same elements. These elements will probably be parsed
multiple times, likely leading to bugs.

Fixes ticket #4162.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 6551acab68)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-12-30 15:38:20 +01:00
compat Merge commit 'ef51692a49' 2013-08-28 12:46:12 +02:00
doc Update for 2.1.6 2014-11-28 20:04:28 +01:00
libavcodec avcodec/motion_est: use 2x8x8 for interlaced qpel 2014-12-30 15:38:20 +01:00
libavdevice fix Makefile objects for pulseaudio support 2014-12-30 15:38:20 +01:00
libavfilter avfilter/x86/vf_pullup: fix old typo 2014-06-25 18:26:28 +02:00
libavformat avformat/matroskadec: fix handling of recursive SeekHead elements 2014-12-30 15:38:20 +01:00
libavresample Merge commit '206895708e' 2013-10-14 15:54:23 +02:00
libavutil avutil/x86/cpu: fix cpuid sub-leaf selection 2014-11-28 18:44:38 +01:00
libpostproc postproc: fix qp count 2014-11-28 18:53:10 +01:00
libswresample swresample/swresample: fix sample drop loop end condition 2014-11-28 18:53:10 +01:00
libswscale swscale/x86/rgb2rgb_template: fix crash with tiny size and nv12 output 2014-12-30 15:38:20 +01:00
presets presets: specify the codecs. 2012-05-04 18:40:36 +02:00
tests postproc/postprocess: fix quant store for fq mode 2014-11-28 18:53:10 +01:00
tools tools/crypto_bench: fix build when AV_READ_TIME is unavailable 2014-11-28 18:44:37 +01:00
.gitignore tools: add benchmark for crypto functions. 2013-09-04 16:36:11 +02:00
arch.mak Merge commit 'b326755989' 2012-12-08 14:24:16 +01:00
Changelog Changelog: add 2.1 2013-10-28 00:39:34 +01:00
cmdutils.c cmdutils: update year 2014-01-21 16:42:32 +01:00
cmdutils.h cmdutils: add -colors option 2013-10-27 09:18:45 +01:00
cmdutils_common_opts.h cmdutils: add -colors option 2013-10-27 09:18:45 +01:00
common.mak Merge commit '47b6cfc2a0' 2013-10-04 11:49:01 +02:00
configure configure: add noexecstack to linker options if supported. 2014-11-28 18:44:38 +01:00
COPYING.GPLv2
COPYING.GPLv3 Add configure option to upgrade (L)GPL to version 3. 2009-06-05 11:04:03 +00:00
COPYING.LGPLv2.1 cosmetics: Delete empty lines at end of file. 2012-02-09 12:26:45 +01:00
COPYING.LGPLv3 Add configure option to upgrade (L)GPL to version 3. 2009-06-05 11:04:03 +00:00
CREDITS CREDITS: redirect to Git log, remove current outdated content 2013-01-31 18:02:52 +01:00
ffmpeg.c ffmpeg: Use av_stream_get_parser() to avoid ABI issues 2014-07-15 01:11:02 +02:00
ffmpeg.h ffmpeg: Do not fill gap before the first decodable frame on single stream input files unless the user explicitly requests it. 2013-11-17 19:11:07 +01:00
ffmpeg_filter.c ffmpeg_filter: fix pointer to local outside scope 2014-06-23 16:51:09 +02:00
ffmpeg_opt.c ffmpeg_opt: Use av_guess_codec() instead of AVOutputFormat->*codec 2014-11-28 18:44:36 +01:00
ffplay.c ffplay: add support for libswresample options 2013-10-26 12:23:54 +02:00
ffprobe.c ffprobe: fix crash happening because of new streams occuring 2014-05-21 22:58:24 +02:00
ffserver.c ffserver: initialize pbuffer in prepare_sdp_description() 2014-11-28 18:44:37 +01:00
INSTALL Merge remote branch 'qatar/master' 2011-04-08 02:50:13 +02:00
library.mak library.mak: only run asm strip if ASMSTRIP flags are set 2014-01-14 01:14:43 +01:00
LICENSE libavfilter/vf_noise: relicense to LGPL 2013-10-27 20:29:07 +00:00
MAINTAINERS MAINTAINERS: update which releases i maintain 2013-10-28 00:40:15 +01:00
Makefile Merge commit '90f9a5830b' 2013-05-24 13:01:41 +02:00
README README: be a tiny bit more verbose 2012-04-06 10:23:26 +02:00
RELEASE Update for 2.1.6 2014-11-28 20:04:28 +01:00
VERSION Update for 2.1.6 2014-11-28 20:04:28 +01:00
version.sh version.sh: handle shallow clones and snapshots. 2011-07-22 10:43:59 +02:00

FFmpeg README
-------------

1) Documentation
----------------

* Read the documentation in the doc/ directory in git.
  You can also view it online at http://ffmpeg.org/documentation.html

2) Licensing
------------

* See the LICENSE file.

3) Build and Install
--------------------

* See the INSTALL file.