annotate avi.c @ 5933:2dbc910a7002 libavformat

Zero-initialize the reply struct The status_code field is read in the fail codepath, where it could be read uninitialized earlier. Found by clang.
author mstorsjo
date Sun, 04 Apr 2010 21:59:06 +0000
parents 6d530eb42996
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5633
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
1 /*
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
2 * AVI common data
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
3 * Copyright (c) 2010 Anton Khirnov
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
4 *
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
5 * This file is part of FFmpeg.
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
6 *
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
11 *
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
15 * Lesser General Public License for more details.
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
16 *
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
20 */
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
21
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
22 #include "avi.h"
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
23
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
24 const AVMetadataConv ff_avi_metadata_conv[] = {
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
25 { "IART", "artist" },
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
26 { "ICMT", "comment" },
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
27 { "ICOP", "copyright" },
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
28 { "ICRD", "date" },
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
29 { "IGNR", "genre" },
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
30 { "ILNG", "language" },
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
31 { "INAM", "title" },
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
32 { "IPRD", "album" },
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
33 { "IPRT", "track" },
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
34 { "ISFT", "encoder" },
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
35 { "ITCH", "encoded_by"},
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
36 { "strn", "title" },
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
37 { 0 },
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
38 };
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
39
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
40 const char ff_avi_tags[][5] = {
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
41 "IARL", "IART", "ICMS", "ICMT", "ICOP", "ICRD", "ICRP", "IDIM", "IDPI",
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
42 "IENG", "IGNR", "IKEY", "ILGT", "ILNG", "IMED", "INAM", "IPLT", "IPRD",
5661
6d530eb42996 Set lavf identification string globally in av_write_header(), rather
rbultje
parents: 5633
diff changeset
43 "IPRT", "ISBJ", "ISFT", "ISHP", "ISRC", "ISRF", "ITCH",
5633
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
44 {0}
5d3ac5652047 Add AVI metadata conversion table.
jai_menon
parents:
diff changeset
45 };