FFmpeg
Loading...
Searching...
No Matches
error.c
Go to the documentation of this file.
1/*
2 * This file is part of FFmpeg.
3 *
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * FFmpeg is distributed in the hope that it will be useful,
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
15 * License along with FFmpeg; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19#include "libavutil/error.c"
20
21static const char *const tag_list[] = {
22#define ERROR_TAG(CODE, DESC) #CODE,
23#define ERROR_TAG2(CODE, CODE2, DESC) #CODE,
25#if !HAVE_STRERROR_R
27#endif
28};
29
30int main(void)
31{
32 int i;
33
34 for (i = 0; i < FF_ARRAY_ELEMS(error_entries); i++) {
35 const struct ErrorEntry *entry = &error_entries[i];
36 printf("%d: %s [%s]\n", entry->num, av_err2str(entry->num), tag_list[i]);
37 }
38
39 for (i = 0; i < 256; i++) {
40 printf("%d: %s\n", -i, av_err2str(-i));
41 }
42
43 return 0;
44}
#define entry
#define i(width, name, range_min, range_max)
Definition cbs_h264.c:63
__device__ int printf(const char *,...)
#define AVERROR_LIST(E, E2)
Definition error.c:30
#define STRERROR_LIST(E)
Definition error.c:61
static const struct ErrorEntry error_entries[]
static const struct exif_tag tag_list[]
Definition exif.c:63
#define av_err2str(errnum)
Convenience macro, the return value should be used only directly in function arguments but never stan...
Definition error.h:122
#define FF_ARRAY_ELEMS(a)
int main(void)
Definition error.c:30
#define ERROR_TAG2(CODE, CODE2, DESC)
#define ERROR_TAG(CODE, DESC)