Mercurial > libavcodec.hg
annotate raw.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 | 378caf7b42ef |
children |
rev | line source |
---|---|
5264 | 1 /* |
2 * Raw Video Codec | |
8629
04423b2f6e0b
cosmetics: Remove pointless period after copyright statement non-sentences.
diego
parents:
8023
diff
changeset
|
3 * Copyright (c) 2001 Fabrice Bellard |
5264 | 4 * |
5 * This file is part of FFmpeg. | |
6 * | |
7 * FFmpeg is free software; you can redistribute it and/or | |
8 * modify it under the terms of the GNU Lesser General Public | |
9 * License as published by the Free Software Foundation; either | |
10 * version 2.1 of the License, or (at your option) any later version. | |
11 * | |
12 * FFmpeg is distributed in the hope that it will be useful, | |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * Lesser General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Lesser General Public | |
18 * License along with FFmpeg; if not, write to the Free Software | |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
20 */ | |
21 | |
22 /** | |
11644
7dd2a45249a9
Remove explicit filename from Doxygen @file commands.
diego
parents:
8718
diff
changeset
|
23 * @file |
5264 | 24 * Raw Video Codec |
25 */ | |
26 | |
7760 | 27 #ifndef AVCODEC_RAW_H |
28 #define AVCODEC_RAW_H | |
5264 | 29 |
30 #include "avcodec.h" | |
31 | |
32 typedef struct PixelFormatTag { | |
8023
76f6a08c9fe6
Fix some icc warnings by using enum PixelFormat instead of int where appropriate.
cehoyos
parents:
7760
diff
changeset
|
33 enum PixelFormat pix_fmt; |
5264 | 34 unsigned int fourcc; |
35 } PixelFormatTag; | |
36 | |
11751
378caf7b42ef
Rename ff_raw_pixelFormatTags symbol to ff_raw_pix_fmt_tags.
stefano
parents:
11644
diff
changeset
|
37 extern const PixelFormatTag ff_raw_pix_fmt_tags[]; |
5264 | 38 |
7760 | 39 #endif /* AVCODEC_RAW_H */ |