Mercurial > libavcodec.hg
annotate arm/mpegvideo_arm.h @ 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 | 7030ce3879d8 |
children |
rev | line source |
---|---|
730 | 1 /* |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3036
diff
changeset
|
2 * This file is part of FFmpeg. |
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3036
diff
changeset
|
3 * |
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3036
diff
changeset
|
4 * FFmpeg is free software; you can redistribute it and/or |
730 | 5 * modify it under the terms of the GNU Lesser General Public |
6 * License as published by the Free Software Foundation; either | |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3036
diff
changeset
|
7 * version 2.1 of the License, or (at your option) any later version. |
730 | 8 * |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3036
diff
changeset
|
9 * FFmpeg is distributed in the hope that it will be useful, |
730 | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
12 * Lesser General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU Lesser General Public | |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3036
diff
changeset
|
15 * License along with FFmpeg; if not, write to the Free Software |
3036
0b546eab515d
Update licensing information: The FSF changed postal address.
diego
parents:
2735
diff
changeset
|
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
730 | 17 */ |
18 | |
11397 | 19 #ifndef AVCODEC_ARM_MPEGVIDEO_H |
20 #define AVCODEC_ARM_MPEGVIDEO_H | |
730 | 21 |
11415 | 22 #include "libavcodec/mpegvideo.h" |
23 | |
8250 | 24 void MPV_common_init_iwmmxt(MpegEncContext *s); |
25 void MPV_common_init_armv5te(MpegEncContext *s); | |
2734
aeea63c97878
Better ARM support for mplayer/ffmpeg, ported from atty fork
michael
parents:
1092
diff
changeset
|
26 |
4713
47ee459ce964
iwmmxt ffmpeg code does not implement dct_unquantize_h263_inter_iwmmxt, but
mru
parents:
4340
diff
changeset
|
27 #endif |