- 15 Jul, 2016 12 commits
-
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Anton Khirnov authored
Since we only know whether a NAL unit corresponds to a new field after parsing the slice header, this requires reorganizing the calls to slice parsing, per-slice/field/frame init and actual decoding. In the previous code, the function for slice header decoding also immediately started a new field/frame as necessary, so any slices already queued for decoding would no longer be decodable. After this patch, we first parse the slice header, and if we determine that a new field needs to be started we decode all the queued slices.
-
Anton Khirnov authored
This function's purpose is not very well defined. Currently it does two (only marginally related) things: selecting the next output frame and calling ff_thread_finish_setup() for frame threading. The first of those more properly belongs under field_start(), while the second can be called directly from decode_nal_units().
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Martin Storsjö authored
Also set FF_CODEC_CAP_INIT_THREADSAFE while adding internal capabilities. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
Previously they returned the default AVERROR_UNKNOWN. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
Matthieu Bouron authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 13 Jul, 2016 7 commits
-
-
Vittorio Giovara authored
The input packet is already unref'd by the calling function.
-
Vittorio Giovara authored
See 17c99b61. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
-
Vittorio Giovara authored
-
Vittorio Giovara authored
-
Janne Grunau authored
The stack used by checkasm_checked_call_vfp was a multiple of 4 when the checked function is called. AAPCS requires a double word (8 byte) aligned stack public interfaces. Since both calls are public interfaces the stack is misaligned when the checked is called. Might fix the SIGBUS error in the armv7-linux-clang-3.7 fate config.
-
Janne Grunau authored
Fixes "Use of uninitialised value" valgrind warnings in checkasm.
-
Janne Grunau authored
Fixes a regression in ca2f19b9 with some mov/mp4 files. The files have several NAL units in the supposed single NAL unit after the size field. Annex B start code prefixes are used to separate them. The first NAL unit is correctly parsed but the buffer does not point to the next size field. Instead semi random data (it seems to be the rbsp_stop_one_bit and the start code prefix) is then parsed as length and will exceed the remaining length of the buffer. Patch based on the code in h264's decode_nal_units() and a similar patch by Hendrik Leppkes in FFmpeg (a9bb4cf8). Bug-Id: ffmpeg/trac5529 Reported-By: Vittorio Giovara
-
- 11 Jul, 2016 2 commits
-
-
Anton Khirnov authored
Currently, SPS.mb_height is actually what the spec calls PicHeightInMapUnits, which is half the frame height when interlacing is allowed. Calling this 'mb_height' is quite confusing, and there are at least two associated bugs where this field is treated as the actual frame height - in the h264 parser and in the code computing maximum reordering buffer size for a given level. Fix those issues (and avoid possible future ones) by exporting the real frame height in this field.
-
Steve Lhomme authored
also fixes a deadlock found by Денис Кулаков <kudesnik33ra@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
-
- 10 Jul, 2016 5 commits
-
-
Martin Storsjö authored
This comment isn't true, the height can be different from the width for these functions (which is why the height is passed as a parameter to them). Signed-off-by: Martin Storsjö <martin@martin.st>
-
Janne Grunau authored
Should fix the SIGBUS in the armv7-linux-clang-3.7 fate target.
-
Janne Grunau authored
-
Janne Grunau authored
GNU as evaluates true as '-1' while Apple's variant and llvm's internal assembler evaluate it as '1'. The best way to avoid this madness is to eliminate boolean expressions instead of trying to fix it with preprocessor directives. Use a direct formula to calculate the required temporary space on the stack in ff_put_vp8_{epel,bilin}{4,8,16}_h[246]v[246]_armv6(). Fixes a checkasm segfault in vp8dsp.mc when using llvm's internal assembler for a non-Apple target.
-
Janne Grunau authored
Unescaped literal left braces are deprecated and a warning was added in Perl 5.22.
-
- 09 Jul, 2016 1 commit
-
-
Martin Storsjö authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 08 Jul, 2016 2 commits
-
-
Martin Storsjö authored
When writing a fragmented file, we by default write an index pointing to all the fragments at the end of the file. This causes constantly increasing memory usage during the muxing. For live streams, the index might not be useful at all. A similar fragment index is written (but at the start of the file) if the global_sidx flag is set. If ism_lookahead is set, we need to keep data about the last ism_lookahead+1 fragments. If no fragment index is to be written, we don't need to store information about all fragments, avoiding increasing the memory consumption linearly with the muxing runtime. This fixes out of memory situations with long live mp4 streams. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
The tests are inspired by similar tests for vp9 by Ronald Bultje. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 06 Jul, 2016 2 commits
-
-
Martin Storsjö authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
Index 0 is w=16, 1 is wd=8, 2 is wd=4. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 03 Jul, 2016 6 commits
-
-
Anton Khirnov authored
The allocated frame size may be larger than the coded dimensions.
-
Anton Khirnov authored
-
Anton Khirnov authored
Stop duplicating this information.
-
Anton Khirnov authored
Stop hardcoding NV12. Also, move this function to the shared code, it will be used by the encoder as well.
-
Anton Khirnov authored
-
Anton Khirnov authored
-
- 02 Jul, 2016 3 commits
-
-
Mark Thompson authored
-
Mark Thompson authored
No longer leaks memory when used with a driver with the "render does not destroy param buffers" quirk (i.e. Intel i965).
-
Mark Thompson authored
The driver being used is detected inside av_hwdevice_ctx_init() and the quirks field then set from a table of known device. If this behaviour is unwanted, the user can also set the quirks field manually. Also adds the Intel i965 driver quirk (it does not destroy parameter buffers used in a call to vaRenderPicture()) and detects that driver to set it.
-