Download ffmpeg/include/libavutil/error.h from paredeyes/ComfyUI_extras_full: direct link, hf CLI and curl.
- Browser
- Download file 5.68 kB
-
https://huggingface.co/datasets/paredeyes/ComfyUI_extras_full/resolve/main/ffmpeg/include/libavutil/error.h
- Command line
-
hf download hf://datasets/paredeyes/ComfyUI_extras_full/ffmpeg/include/libavutil/error.h
-
curl -L -o error.h https://huggingface.co/datasets/paredeyes/ComfyUI_extras_full/resolve/main/ffmpeg/include/libavutil/error.h
5.68 kB
| /* | |
| * This file is part of FFmpeg. | |
| * | |
| * FFmpeg is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Lesser General Public | |
| * License as published by the Free Software Foundation; either | |
| * version 2.1 of the License, or (at your option) any later version. | |
| * | |
| * FFmpeg is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * Lesser General Public License for more details. | |
| * | |
| * You should have received a copy of the GNU Lesser General Public | |
| * License along with FFmpeg; if not, write to the Free Software | |
| * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
| */ | |
| /** | |
| * @file | |
| * error code definitions | |
| */ | |
| /** | |
| * @addtogroup lavu_error | |
| * | |
| * @{ | |
| */ | |
| /* error handling */ | |
| /* Some platforms have E* and errno already negated. */ | |
| /** | |
| * This is semantically identical to AVERROR_BUG | |
| * it has been introduced in Libav after our AVERROR_BUG and with a modified value. | |
| */ | |
| /* HTTP & RTSP errors */ | |
| /** | |
| * Put a description of the AVERROR code errnum in errbuf. | |
| * In case of failure the global variable errno is set to indicate the | |
| * error. Even in case of failure av_strerror() will print a generic | |
| * error message indicating the errnum provided to errbuf. | |
| * | |
| * @param errnum error code to describe | |
| * @param errbuf buffer to which description is written | |
| * @param errbuf_size the size in bytes of errbuf | |
| * @return 0 on success, a negative value if a description for errnum | |
| * cannot be found | |
| */ | |
| int av_strerror(int errnum, char *errbuf, size_t errbuf_size); | |
| /** | |
| * Fill the provided buffer with a string containing an error string | |
| * corresponding to the AVERROR code errnum. | |
| * | |
| * @param errbuf a buffer | |
| * @param errbuf_size size in bytes of errbuf | |
| * @param errnum error code to describe | |
| * @return the buffer in input, filled with the error description | |
| * @see av_strerror() | |
| */ | |
| static inline char *av_make_error_string(char *errbuf, size_t errbuf_size, int errnum) | |
| { | |
| av_strerror(errnum, errbuf, errbuf_size); | |
| return errbuf; | |
| } | |
| /** | |
| * Convenience macro, the return value should be used only directly in | |
| * function arguments but never stand-alone. | |
| */ | |
| av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum) | |
| /** | |
| * @} | |
| */ | |