diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-04 01:44:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-04 01:44:06 +0100 |
commit | 259a960f1b74339626f8da890cc261a4043097fe (patch) | |
tree | aea69b2dcfe4dfabedf82725fecbd2a551412f55 /libavcodec | |
parent | bb99ae3ae924c942a634bec7711ec7ee11c38eb9 (diff) | |
parent | 2a6eb06254df79e96b3d791b6b89b2534ced3119 (diff) | |
download | ffmpeg-259a960f1b74339626f8da890cc261a4043097fe.tar.gz |
Merge remote-tracking branch 'qatar/master'
* 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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/avcodec.h | 2 | ||||
-rw-r--r-- | libavcodec/vp6.c | 4 | ||||
-rw-r--r-- | libavcodec/x86/fmtconvert.asm | 6 |
3 files changed, 9 insertions, 3 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index f5b06d3936..27c6f5e9f5 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -553,7 +553,7 @@ enum AVChromaLocation{ /** * LPC analysis type */ -attribute_deprecated enum AVLPCType { +enum AVLPCType { AV_LPC_TYPE_DEFAULT = -1, ///< use the codec default LPC type AV_LPC_TYPE_NONE = 0, ///< do not use LPC prediction or use all zero coefficients AV_LPC_TYPE_FIXED = 1, ///< fixed LPC coefficients diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c index a95e4be5b2..29fcecdb57 100644 --- a/libavcodec/vp6.c +++ b/libavcodec/vp6.c @@ -376,7 +376,7 @@ static void vp6_parse_coeff_huffman(VP56Context *s) if (b > 3) pt = 1; vlc_coeff = &s->dccv_vlc[pt]; - for (coeff_idx=0; coeff_idx<64; ) { + for (coeff_idx = 0;;) { int run = 1; if (coeff_idx<2 && s->nb_null[coeff_idx][pt]) { s->nb_null[coeff_idx][pt]--; @@ -413,6 +413,8 @@ static void vp6_parse_coeff_huffman(VP56Context *s) } } coeff_idx+=run; + if (coeff_idx >= 64) + break; cg = FFMIN(vp6_coeff_groups[coeff_idx], 3); vlc_coeff = &s->ract_vlc[pt][ct][cg]; } diff --git a/libavcodec/x86/fmtconvert.asm b/libavcodec/x86/fmtconvert.asm index 37e7a094ce..d8838d6922 100644 --- a/libavcodec/x86/fmtconvert.asm +++ b/libavcodec/x86/fmtconvert.asm @@ -28,10 +28,14 @@ SECTION_TEXT ; void int32_to_float_fmul_scalar(float *dst, const int *src, float mul, int len); ;--------------------------------------------------------------------------------- %macro INT32_TO_FLOAT_FMUL_SCALAR 2 -%ifdef ARCH_X86_64 +%ifdef UNIX64 cglobal int32_to_float_fmul_scalar_%1, 3,3,%2, dst, src, len %else cglobal int32_to_float_fmul_scalar_%1, 4,4,%2, dst, src, mul, len +%endif +%ifdef WIN64 + SWAP 0, 2 +%elifdef ARCH_X86_32 movss m0, mulm %endif SPLATD m0 |