Mercurial > libavcodec.hg
annotate arm/dcadsp_init_arm.c @ 12494:94eaea836bf4 libavcodec
Check avctx width/height more thoroughly (e.g. all values 0 except width would
have been accepted before).
Also do not fail if they are invalid but instead override them to 0.
This allows decoding e.g. MPEG video when only the container values are corrupted.
For encoding a value of 0,0 of course makes no sense, but was allowed
through before and will be caught by an extra check in the encode function.
author | reimar |
---|---|
date | Wed, 15 Sep 2010 04:46:55 +0000 |
parents | 8d3539d6ba3d |
children |
rev | line source |
---|---|
11617
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
1 /* |
11619 | 2 * Copyright (c) 2010 Mans Rullgard <mans@mansr.com> |
3 * | |
11617
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
4 * This file is part of FFmpeg. |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
5 * |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
6 * FFmpeg is free software; you can redistribute it and/or |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
7 * modify it under the terms of the GNU Lesser General Public |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
8 * License as published by the Free Software Foundation; either |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
9 * version 2.1 of the License, or (at your option) any later version. |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
10 * |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
11 * FFmpeg is distributed in the hope that it will be useful, |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
14 * Lesser General Public License for more details. |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
15 * |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
16 * You should have received a copy of the GNU Lesser General Public |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
17 * License along with FFmpeg; if not, write to the Free Software |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
19 */ |
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
20 |
11619 | 21 #include "config.h" |
22 #include "libavutil/attributes.h" | |
23 #include "libavcodec/dcadsp.h" | |
11617
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
24 |
11619 | 25 void ff_dca_lfe_fir_neon(float *out, const float *in, const float *coefs, |
26 int decifactor, float scale, float bias); | |
11617
bb17732c00ef
DCA: break out lfe_interpolation_fir() inner loops to a function
mru
parents:
diff
changeset
|
27 |
11619 | 28 void av_cold ff_dcadsp_init_arm(DCADSPContext *s) |
29 { | |
30 if (HAVE_NEON) | |
31 s->lfe_fir = ff_dca_lfe_fir_neon; | |
32 } |