summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* lavc: make avcodec_get_context_defaults3 "officially" publicAnton Khirnov2011-10-192-22/+34
| | | | Deprecate avcodec_get_context_defaults/avcodec_get_context_defaults2
* Use correct scaling table for bwd-pred MVs in second B-fieldMashiat Sarker Shakkhar2011-10-191-9/+11
| | | | | | | | | | | When scaling backward predicted MVs in second B-field, the scaling table is opposite of that for P field pictures; i.e. first field P table will be used as second field B table and second field P table will be used as first field B table. This is not documented in the spec, but exists in the ref. decoder. This fixes SA10139. Signed-off-by: Martin Storsjö <martin@martin.st>
* Ut Video decoderKostya Shishkov2011-10-195-2/+465
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* sunrast: Check for out of bounds readsLaurent Aimar2011-10-181-1/+13
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* lavc: rename AV_ER_* options to AV_EF_* and rename AGGRESSIVE to BUFFERDustin Brody2011-10-181-4/+4
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: replace API-bump-triggered AVCodecContext field change with shorter, ↵Dustin Brody2011-10-181-5/+1
| | | | | | non-conflicting name Signed-off-by: Anton Khirnov <anton@khirnov.net>
* w32threads: support for frame multithreadingSteven Walters2011-10-1610-190/+230
| | | | | | | | Replace our incomplete w32threads implementation with x264's pthreads w32threads wrapper. Relicensed to LGPL with kind permission by Pegasys Inc. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* avcodec: remove stray @deprecated commentMans Rullgard2011-10-161-2/+0
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* prores: get correct size for coded V plane if alpha is presentMans Rullgard2011-10-151-2/+4
| | | | | | | The size check must be updated to take into account both manners in which v_data_size might be set. Signed-off-by: Mans Rullgard <mans@mansr.com>
* prores: do not set pixel format on codec initMans Rullgard2011-10-151-2/+0
| | | | | | | | | The pixel format is not known until the frame header is parsed. Guessing it here only causes trouble for the caller if the guess turns out to be wrong (and actually causes very wrong output by avconv/avplay). Signed-off-by: Mans Rullgard <mans@mansr.com>
* pthread: prevent updating AVCodecContext from itself in frame_thread_freeRonald S. Bultje2011-10-151-1/+1
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* pthread: copy coded frame dimensions in update_context_from_threadRonald S. Bultje2011-10-151-0/+3
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* vp8: prevent read from uninitialized memory in decode_mvsRonald S. Bultje2011-10-151-0/+1
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* vp8: force reallocation in update_thread_context after frame size changeRonald S. Bultje2011-10-151-9/+19
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* vp8: fix return value if update_dimensions failsRonald S. Bultje2011-10-151-1/+1
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* adpcmdec: calculate actual number of output samples for each decoder.Justin Ruggles2011-10-141-120/+231
| | | | | This also allows for removing some of the buf_size checks and using the sample count for some of the decoding loops.
* adpcmdec: check remaining buffer size before decoding next block in theJustin Ruggles2011-10-141-1/+1
| | | | ADPCM IMA WAV decoder.
* adpcmdec: do not terminate early in ADPCM IMA Duck DK3 decoder.Justin Ruggles2011-10-141-1/+5
| | | | | There are still 2 nibbles to decode once the last byte in the packet has been read. Updated FATE reference.
* adpcmdec: remove unneeded buf_size==0 check.Justin Ruggles2011-10-141-3/+0
| | | | This is already done by avcodec_decode_audio3()
* adpcmdec: remove unneeded zeroing of *data_sizeJustin Ruggles2011-10-141-1/+0
|
* dnxhdenc: fixed signed multiplication overflowMans Rullgard2011-10-141-1/+1
| | | | | | | | | The low 32 bits of a multiplication are the same for signed and unsigned operands. Casting to unsigned before multiplying is thus equivalent while avoiding signed overflow, which is undefined by the C99 standard. Signed-off-by: Mans Rullgard <mans@mansr.com>
* proresdsp: fix function prototypes.Ronald S. Bultje2011-10-141-3/+3
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* prores-idct: fix overflow in c code.Ronald S. Bultje2011-10-142-20/+27
| | | | | | | Fix the fate ref for prores-422_proxy by reverting the changes to it in commit f492df0927c42da174edb674857670fc50abc5dc Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* prores: add missing feature warning for alphaJanne Grunau2011-10-141-0/+5
|
* lavc: add a flag-based error_recognition field to AVCodecContext and ↵Dustin Brody2011-10-141-4/+17
| | | | | | deprecate non-flag-based ER field Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: rename deprecation symbol FF_API_VERY_AGGRESSIVE to FF_API_ERDustin Brody2011-10-143-6/+6
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* shorten: remove the flush function.Justin Ruggles2011-10-131-8/+0
| | | | The shorten decoder does not support seeking.
* truespeech: use sizeof() instead of hardcoded sizesJustin Ruggles2011-10-131-3/+3
|
* truespeech: remove unneeded variable, 'consumed'Justin Ruggles2011-10-131-4/+3
| | | | increment the 'buf' pointer instead, and consume the whole packet.
* truespeech: simplify truespeech_read_frame() by using get_bits()Justin Ruggles2011-10-131-87/+52
|
* truespeech: decode directly to output buffer instead of a temp bufferJustin Ruggles2011-10-131-10/+6
|
* truespeech: check to make sure channels == 1Justin Ruggles2011-10-131-0/+5
|
* truespeech: check for large enough output buffer rather than truncating outputJustin Ruggles2011-10-131-4/+12
|
* truespeech: remove unneeded zero-size packet check.Justin Ruggles2011-10-131-3/+0
| | | | This is already checked in avcodec_decode_audio3()
* mlpdec: return meaningful error codes instead of -1Justin Ruggles2011-10-132-57/+61
|
* mlpdec: remove unnecessary wrapper functionJustin Ruggles2011-10-131-12/+3
|
* mlpdec: only calculate output size onceJustin Ruggles2011-10-131-3/+7
|
* mlpdec: validate that the reported channel count matches the actual outputJustin Ruggles2011-10-131-1/+6
| | | | channel count
* pcm: reduce pointer type castingMans Rullgard2011-10-131-40/+37
| | | | | | | | | Making 'samples' a pointer to uint8_t simplifies the DECODE macro and reduces the amount of type casting overall. This also fixes some signed overflows on left shift. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mathops: remove undefined behaviour from sign_extend()Mans Rullgard2011-10-131-1/+3
| | | | | | | | This function intentionally overflows the signed range on the left shift. Using this type-punning avoids errors from the overflow checker without disabling this test globally. Signed-off-by: Mans Rullgard <mans@mansr.com>
* vc1: explicitly zero interlaced mode coding variables for progressive modeKostya Shishkov2011-10-131-2/+3
| | | | | | | | Both v->fcm and v->field_mode are used in common code, now they won't be reset for progressive frame after interlaced one causing writing past the frame end for example. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* tiffenc: initialize forgotten avctx.Jean First2011-10-121-0/+1
|
* vc1: more prettyprinting cosmeticsKostya Shishkov2011-10-121-1276/+1389
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vc1: prettyprint some tablesKostya Shishkov2011-10-121-529/+676
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vc1: K&R formatting cosmeticsKostya Shishkov2011-10-121-56/+58
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-1218-538/+538
|
* AVOptions: add new API for enumerating children.Anton Khirnov2011-10-121-13/+19
| | | | | | | | | This will allow the caller to enumerate child contexts in a generic way and since the API is recursive, it also allows for deeper nesting (e.g. AVFormatContext->AVIOContext->URLContext) This will also allow the new setting/reading API to transparently apply to children contexts.
* rv34: move inverse transform functions to DSP contextJanne Grunau2011-10-126-81/+121
|
* h264: change unsupported bit depth message to error levelMans Rullgard2011-10-121-1/+1
| | | | | | | Unsupported bit depth is certainly an error the user will want to know about. Signed-off-by: Mans Rullgard <mans@mansr.com>
* qdm2: fix signed multiplication overflowMans Rullgard2011-10-121-1/+1
| | | | | | | | This code relies on the result wrapping as for unsigned values, and the sign is not used. Thus an unsigned type is proper here. Signed-off-by: Mans Rullgard <mans@mansr.com>
OpenPOWER on IntegriCloud