summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* avconv: use new options parser.Anton Khirnov2012-12-183-41/+116
|
* cmdutils: don't log an error in opt_default().Anton Khirnov2012-12-181-1/+0
| | | | It results in spurious errors when using the new preparser.
* cmdutils: add a commandline pre-parser.Anton Khirnov2012-12-182-0/+329
| | | | | | | | | | | | | It splits the commandline into a more convenient internal representation for further parsing. This will allow e.g. - processing global options first independently of their location on the commandline, eliminating ugly hacks for processing e.g. cpuflags first - better options validation and error reporting. It is now possible for the parser to know that it's applying an input option to an output file or vice versa and act accordingly.
* cmdutils: split parse_option().Anton Khirnov2012-12-181-30/+40
| | | | | | Separate the code that searches for the option to use and the code that actually writes it. The writing code will be reused by the new options parser.
* cmdutils: add a macro to simplify grow_array() calls.Anton Khirnov2012-12-183-27/+18
|
* h264: support frame parameter changes during frame-mtJanne Grunau2012-12-182-127/+230
| | | | Fixes CVE-2012-2782.
* mpegvideo: allocate scratch buffers after linesize is knownJanne Grunau2012-12-185-22/+85
| | | | | | | | | | | Since we can't know which stride a custom get_buffer() implementation is going to use we have to allocate this scratch buffers after the linesize is known. It was pretty safe for 8 bit per pixel pixel formats since we always allocated memory for up to 16 bits per pixel. It broke hoever with cmdutis.c's alloc_buffer() and high pixel bit depth since it allocated larger edges than mpegvideo expected. Fixes fuzzed sample nasa-8s2.ts_s244342.
* ff_h264_direct_ref_list_init: fix B slice check.Michael Niedermayer2012-12-181-1/+1
| | | | | | Fixes null pointer dereference. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
* h264: increase dist_scale_factor for up to 32 referencesJanne Grunau2012-12-182-8/+11
| | | | | Compute dist_scale_factor_field only for MBAFF since that is the only case in which it is used.
* misc typo, style and wording fixesDiego Biurrun2012-12-188-90/+91
|
* configure: formatting cosmeticsDiego Biurrun2012-12-181-4/+8
|
* h264: use mbaff ref indices in fill_colmap() only for mbaff referencesMichael Niedermayer2012-12-181-1/+2
| | | | | | Prevents writing beyond array bounds. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* h264: prevent decoding of slice NALs in extradataJanne Grunau2012-12-182-7/+23
| | | | | | | | It is not posible to call get_buffer during frame-mt codec initialization. Libavformat might pass huge amounts of data as extradata after parsing broken files. The 'extradata' for the fuzzed sample sample_varPAR_s5374_r001-02.avi is 2.8M large and contains multiple slices.
* doxy: Clarify what avpriv_set_pts_info doesDerek Buitenhuis2012-12-171-5/+7
| | | | | | The "pts for a given stream" was nonsensical. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* au: Reorder code so that both muxer and demuxer are under #ifdefsDiego Biurrun2012-12-171-63/+63
| | | | This reduces code size when either piece has been disabled.
* fate: Move RALF test into lossless audio groupDiego Biurrun2012-12-172-3/+3
|
* cosmetics: Use consistent names for multiple inclusion guards.Diego Biurrun2012-12-173-9/+9
|
* avresample: use valid log context in mixing functionsHendrik Leppkes2012-12-161-5/+5
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* lavr: remove automatic context close/open for resampling compensationJustin Ruggles2012-12-163-7/+15
| | | | | | | | | It adds unnecessary complication for insignificant usability improvement. The user really should know if they'll need resampling compensation before opening the context. Note that only the documentation has changed. The current functionality will still work until the next major bump.
* lavr: only save/restore the mixing matrix if mixing is being doneJustin Ruggles2012-12-161-6/+12
|
* rtpdec_vp8: Cosmetics: Fix bad alignment/indentationMartin Storsjö2012-12-161-2/+2
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: Allow including a SDES/CNAME block in RTCP SR packetsMartin Storsjö2012-12-162-0/+18
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc_vp8: Include the picture number in VP8 packetsMartin Storsjö2012-12-162-7/+15
| | | | | | | | | | | This makes it easier for receivers to decide what to do if data is lost. Refactor calculating the max payload size, to avoid hardcoding the header size in too many places, reducing the number of lines that have to be touched if the header is adjusted further. Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: fix memleak on error during SPS parsingJanne Grunau2012-12-151-1/+1
| | | | Introduced in d7d6efe42b0d.
* h264-mt: handle NAL_DPAs before calling ff_thread_finish_setupJanne Grunau2012-12-151-0/+1
| | | | | Since a NAL_DPA can start a new frame it has to be handled before ff_thread_finish_setup is called.
* lavr: move AudioMix struct definition to audio_mix.cJustin Ruggles2012-12-152-22/+24
|
* vp56: release frames on errorLuca Barbato2012-12-141-1/+7
| | | | | | Fixes CVE-2012-2783 CC: libav-stable@libav.org
* vp56: make parse_header return standard error codesLuca Barbato2012-12-144-16/+18
| | | | | | Returning 0 for failure is misleading. CC: libav-stable@libav.org
* ivi_common: check that scan pattern is set before using it.Anton Khirnov2012-12-141-0/+5
| | | | | | Fixes CVE-2012-2791. CC: libav-stable@libav.org
* ivi_common: use proper logging context in ivi_decode_blocks().Anton Khirnov2012-12-141-4/+5
|
* ivi_common: make some functions and tables static.Anton Khirnov2012-12-142-128/+111
|
* asyncts: ignore min_delta only if first_pts is setJustin Ruggles2012-12-131-1/+2
|
* asyncts: merge two conditionsJustin Ruggles2012-12-131-7/+2
|
* x86inc: fully concatenate tokens to fix macro expansion for nasmJanne Grunau2012-12-131-2/+2
| | | | | Fixes build errors with nasm introduced in 6f40e9f070f7 for stack memory alignment. Noticed by BugMaster.
* h264: initialize frame-mt context copies properlyJanne Grunau2012-12-131-0/+2
|
* mpegvideo: treat delayed pictures as usedJanne Grunau2012-12-133-10/+10
| | | | | | This requires to move the avcodec_default_free_buffers() call to ff_MPV_common_end() since otherwise delayed pictures would get freed during a size change.
* lavc: set frame parameters after decoding only if necessaryJanne Grunau2012-12-131-5/+8
| | | | | | | | Direct rendering capable decoders call get_buffer() which will set the frame parameters. Prevents frames with wrong parameters when a decoder outputs delayed frames after a resolution or pixel format change.
* h264: set parameters from SPS whenever it changesJanne Grunau2012-12-133-49/+68
| | | | | Fixes a crash in the fuzzed sample sample_varPAR.avi_s26638 with alternating bit depths.
* asyncts: cosmetics: reindentJustin Ruggles2012-12-131-12/+12
|
* doc: improve documentation for the asyncts filter first_pts optionJustin Ruggles2012-12-131-2/+3
| | | | Note the time base for the option. Add an additional example description.
* asyncts: fix the asyncts behavior when using the first_pts optionJustin Ruggles2012-12-131-9/+55
| | | | | Currently it will do padding, but it does not properly handle start-of-stream trimming as documented.
* asyncts: use clipped delta value when setting resample compensationJustin Ruggles2012-12-131-1/+1
| | | | | The max_comp option is supposed to limit maximum compensation, but currently the clipped value is not actually used.
* asyncts: fix flushing of final samples at EOFJustin Ruggles2012-12-131-7/+7
|
* vp6: properly fail on unsupported featureLuca Barbato2012-12-131-2/+2
| | | | | | | Interlacing is not supported at all and mismanaged down the normal codepaths causing possible buffer management issues. CC: libav-stable@libav.org
* aacdec: Fix an off-by-one overwrite when switching to LTP profile from MAIN.Alex Converse2012-12-121-1/+1
| | | | | Found-by: pawlkt CC: libav-stable@libav.org
* x86inc: fix stack alignment on win64Ronald S. Bultje2012-12-121-4/+6
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpproto: Remove unused definesMartin Storsjö2012-12-121-3/+0
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_mpeg4: Cosmetic cleanupMartin Storsjö2012-12-121-12/+7
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Cosmetic cleanup of the headerMartin Storsjö2012-12-121-19/+26
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Get rid of a useless _s suffix on a struct nameMartin Storsjö2012-12-121-3/+3
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
OpenPOWER on IntegriCloud