summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* Set AVFrame reference before reget_buffer.Reimar Döffinger2011-11-051-0/+1
| | | | | | | Otherwise it might return a write-only frame which would break decoding completely. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* nuv: do not use data not initialized by LZO decompression.Reimar Döffinger2011-11-051-1/+1
| | | | | | | This fixes visible corruption in the incomplete last frame of the FATE sample. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* nuv: Fix combination of size changes and LZO compression.Reimar Döffinger2011-11-051-12/+26
| | | | | | | | | There were multiple issues, for example might we have to re-run the decompression when the size of the buffer increased, we should always use a decompression buffer large enough for the header (so we do not get stuck when the size is too small). Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* Check NUV per-frame header for validity.Reimar Döffinger2011-11-051-2/+2
| | | | | | | Since it contains dimensions parsing an invalid one has rather annoying effects. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* rtjpeg: check get_block return value for error.Reimar Döffinger2011-11-051-12/+13
| | | | | | This avoids crashes due to reading out-of-bounds. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* Simplify using get_bits_left.Reimar Döffinger2011-11-051-3/+3
| | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* Use FFALIGN.Reimar Döffinger2011-11-051-2/+2
| | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* Try to set AVFrame.reference to correct values.Reimar Döffinger2011-11-0540-45/+45
| | | | | | | | | I am not sure these new values are correct, not am I sure the semantics are a good idea since we do not seem to make any use of them but they caused a lot of confusion, but this seems to make things closer to matching the documentation. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* h264: fix ssse3 biweight code with weights of 128Michael Niedermayer2011-11-051-0/+7
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Make ff_mba_* arrays const.Reimar Döffinger2011-11-052-4/+4
| | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* Make fdct_r_row_sse2 const.Reimar Döffinger2011-11-051-1/+1
| | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* Make AMR tables of lookup filter tables const.Reimar Döffinger2011-11-052-3/+3
| | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* Make tab_frw_01234567_sse2 const.Reimar Döffinger2011-11-051-1/+1
| | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* j2kdec: fix a bunch of const compiler warnings.Clément Bœsch2011-11-051-4/+4
|
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-11-052-4/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: binkaudio: expand quant_table to accommodate all possible values libx264: Set the default of the rc_lookahead option to -1 avcodec: Set flags2 default value depending on availability configure: declare dependency of h264_vaapi_hwaccel on h264_decoder Conflicts: configure libavcodec/options.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * binkaudio: expand quant_table to accommodate all possible valuesJustin Ruggles2011-11-041-2/+2
| |
| * libx264: Set the default of the rc_lookahead option to -1Martin Storsjö2011-11-041-1/+1
| | | | | | | | | | | | | | | | This allows it to use the defaults specified by preset/tune, without overwriting it with the default value from the AVCodecContext field. Signed-off-by: Martin Storsjö <martin@martin.st>
| * avcodec: Set flags2 default value depending on availabilityMartin Storsjö2011-11-041-1/+11
| | | | | | | | | | | | | | This makes the code compile when FF_API_X264_GLOBAL_OPTS or FF_API_LAME_GLOBAL_OPTS is 0. Signed-off-by: Martin Storsjö <martin@martin.st>
* | dwt: Code make up, removed gotosJordi Ortiz2011-11-051-203/+204
| | | | | | | | | | | | (cherry picked from commit 14880406e1277cef91d9b22a4d9b3bf91f8ea4ca) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Dirac: Added endif commentsJordi Ortiz2011-11-051-1/+1
| | | | | | | | | | | | (cherry picked from commit c023d4db3688cd4f0fa47c472b33eb343b0d6db1) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Dirac: Specific struct initializers in AVCodec initializationJordi Ortiz2011-11-051-14/+13
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Dirac: Removed goto + some code make upJordi Ortiz2011-11-041-66/+63
| | | | | | | | | | | | (cherry picked from commit 8db434f8a6d210f7fd2f28ba325927d7a5dd04b9) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | dwt: removed some warnings in make checkheadersJordi Ortiz2011-11-041-5/+5
| | | | | | | | | | | | (cherry picked from commit 1124056ac054842f36866b4dabb9f8aae0ad06b6) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Dirac: Solved problem with make checkheadersJordi Ortiz2011-11-041-0/+2
| | | | | | | | | | | | (cherry picked from commit d611ea0a44f3e4f67fef7ba916da5a25adef58da) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Fix libutvideo wrapper nameDerek Buitenhuis2011-11-041-1/+1
| | | | | | | | | | | | | | | | Change the libutvideo wrapper name to "libutvideo", as it currently conflicts with the native utvideo decoder's name of "utvideo". Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-11-043-3/+9
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: vp6: Fix illegal read. avfilter: Don't copy garbage from the stack when setting up video pictures. avcodec: Make sure codec_type is set by avcodec_get_context_defaults2 avcodec: Remove a misplaced and useless attribute_deprecated avconv: add -dump_attachment option. avconv: add -attach option. avconv: make negative mappings disable only streams from the specified file fmtconvert: fix int32_to_float_fmul_scalar() for windows x86_64 Conflicts: libavcodec/options.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vp6: Fix illegal read.Alex Converse2011-11-031-1/+3
| |
| * avcodec: Make sure codec_type is set by avcodec_get_context_defaults2Martin Storsjö2011-11-031-0/+1
| | | | | | | | | | | | | | | | | | | | This function used to set codec_type. With the current fallback implementation based on avcodec_get_context_defaults3, codec_type won't be set to the value passed in, but will be set to AVMEDIA_TYPE_UNKNOWN. Legacy callers of this function might expect this field to be set to the value passed in. Signed-off-by: Martin Storsjö <martin@martin.st>
| * avcodec: Remove a misplaced and useless attribute_deprecatedMartin Storsjö2011-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If attribute_deprecated is used in an enum declaration, it should follow the 'enum' keyword, otherwise it's ignored silently. This is the only case of attribute_deprecated for enum declarations currently. Currently, this attribute_deprecated doesn't have any effect. If moved to the right place, it emits a warning every single time avcodec.h is included, like this: avcodec.h:2827: warning: ‘AVLPCType’ is deprecated (declared at avcodec.h:543) There is already a working attribute_deprecated for the corresponding field in AVCodecContext, so therefore this one shouldn't be needed. Signed-off-by: Martin Storsjö <martin@martin.st>
| * fmtconvert: fix int32_to_float_fmul_scalar() for windows x86_64Justin Ruggles2011-11-021-1/+5
| | | | | | | | | | | | | | The calling convention only allows 4 non-stack parameter, with each float or int register being skipped if not used. fixes Bug 64
* | h264: favor coded_width in resolution chnaged checksMichael Niedermayer2011-11-031-1/+1
| | | | | | | | | | Suggested-by: Joakim Plate <elupus@ecce.se> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: Init AVFrame->opaque to AVCodecContext.opaque in ↵Michael Niedermayer2011-11-031-0/+1
| | | | | | | | | | | | | | | | avcodec_default_get_buffer() this should allow some simplifications in some applications. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-11-0350-3596/+1661
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (44 commits) replacement Indeo 3 decoder gsm demuxer: do not allocate packet twice. flvenc: use first packet delay as global delay. ac3enc: doxygen update. imc: return error codes instead of 0 for error conditions. imc: return meaningful error codes instead of -1 imc: do not set channel layout for stereo imc: validate channel count imc: check for ff_fft_init() failure imc: check output buffer size before decoding imc: use DSPContext.bswap16_buf() to byte-swap packet data rtsp: add allowed_media_types option libgsm: add flush function to reset the decoder state when seeking libgsm: simplify decoding by using a loop gsm: log error message when packet is too small libgsmdec: do not needlessly set *data_size to 0 gsmdec: do not needlessly set *data_size to 0 gsmdec: add flush function to reset the decoder state when seeking libgsmdec: check output buffer size before decoding gsmdec: log error message when output buffer is too small. ... Conflicts: Changelog ffplay.c libavcodec/indeo3.c libavcodec/mjpeg_parser.c libavcodec/vp3.c libavformat/cutils.c libavformat/id3v2.c libavutil/parseutils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * replacement Indeo 3 decoderMaxim Poliakovski2011-11-032-3314/+1248
| | | | | | | | | | | | | | The new decoder is much smaller and has better code quality. Cleanup and fixes courtesy of Kostya Shishkov. Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * ac3enc: doxygen update.Justin Ruggles2011-11-024-42/+98
| | | | | | | | | | | | Add some parameters to existing function documentation. Remove some unneeded documentation. Convert some static function documentation to non-doxygen style.
| * imc: return error codes instead of 0 for error conditions.Justin Ruggles2011-11-021-2/+2
| | | | | | | | | | This fixes a bug where the whole buffer was returned as decoded audio due to *data_size not being set to zero and the return value being >= 0.
| * imc: return meaningful error codes instead of -1Justin Ruggles2011-11-021-9/+10
| |
| * imc: do not set channel layout for stereoJustin Ruggles2011-11-021-1/+1
| | | | | | | | we only support decoding of mono imc
| * imc: validate channel countJustin Ruggles2011-11-021-0/+5
| | | | | | | | ask for a sample if not mono
| * imc: check for ff_fft_init() failureJustin Ruggles2011-11-021-2/+5
| |
| * imc: check output buffer size before decodingJustin Ruggles2011-11-021-2/+8
| |
| * imc: use DSPContext.bswap16_buf() to byte-swap packet dataJustin Ruggles2011-11-021-3/+3
| |
| * libgsm: add flush function to reset the decoder state when seekingJustin Ruggles2011-11-021-0/+7
| |
| * libgsm: simplify decoding by using a loopJustin Ruggles2011-11-021-7/+8
| |
| * gsm: log error message when packet is too smallJustin Ruggles2011-11-022-2/+8
| |
| * libgsmdec: do not needlessly set *data_size to 0Justin Ruggles2011-11-021-1/+0
| |
| * gsmdec: do not needlessly set *data_size to 0Justin Ruggles2011-11-021-1/+1
| |
| * gsmdec: add flush function to reset the decoder state when seekingJustin Ruggles2011-11-021-0/+8
| |
| * libgsmdec: check output buffer size before decodingJustin Ruggles2011-11-021-2/+9
| |
| * gsmdec: log error message when output buffer is too small.Justin Ruggles2011-11-021-2/+4
| | | | | | | | also return AVERROR(EINVAL) instead of -1
OpenPOWER on IntegriCloud