Repository URL to install this package:
|
Version:
8:3.0.2-1ubuntu3 ▾
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>FFmpeg: libavutil/error.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">FFmpeg
 <span id="projectnumber">3.0.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_8d855866ba5d436d839c7fc557836cd9.html">libavutil</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">error.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="error_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * This file is part of FFmpeg.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * FFmpeg is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * License as published by the Free Software Foundation; either</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * FFmpeg is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * License along with FFmpeg; if not, write to the Free Software</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"></span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * @file</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * error code definitions</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#ifndef AVUTIL_ERROR_H</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor"></span><span class="preprocessor">#define AVUTIL_ERROR_H</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <errno.h></span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <stddef.h></span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"></span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"> * @addtogroup lavu_error</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"> * @{</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment">/* error handling */</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#if EDOM > 0</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor"></span><span class="preprocessor">#define AVERROR(e) (-(e)) </span><span class="comment">///< Returns a negative error code from a POSIX error code, to return from library functions.</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment"></span>#define AVUNERROR(e) (-(e)) <span class="comment">///< Returns a POSIX error code from a library function error return value.</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment"></span>#else</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">/* Some platforms have E* and errno already negated. */</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="group__lavu__error.html#gae4bb6f165973d09584e0ec0f335f69ca"> 43</a></span> <span class="preprocessor">#define AVERROR(e) (e)</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga025dbb21a4a9789dfb37a2b78f241026"> 44</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AVUNERROR(e) (e)</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="group__lavu__error.html#gacfc46235e91e0770b94f7918013a1034"> 47</a></span> <span class="preprocessor">#define FFERRTAG(a, b, c, d) (-(int)MKTAG(a, b, c, d))</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga586e134e9dad8f57a218b2cd8734b601"> 49</a></span> <span class="preprocessor">#define AVERROR_BSF_NOT_FOUND FFERRTAG(0xF8,'B','S','F') </span><span class="comment">///< Bitstream filter not found</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="group__lavu__error.html#gaa102cde7ec5acbc099c3bcbb58556a18"> 50</a></span> <span class="comment"></span>#define AVERROR_BUG FFERRTAG( 'B','U','G','!') <span class="comment">///< Internal bug, also see AVERROR_BUG2</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga76077a6d42ee211f59712485bd977e40"> 51</a></span> <span class="comment"></span>#define AVERROR_BUFFER_TOO_SMALL FFERRTAG( 'B','U','F','S') <span class="comment">///< Buffer too small</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga28f845c3efcf791fdf3b2b3907330bf5"> 52</a></span> <span class="comment"></span>#define AVERROR_DECODER_NOT_FOUND FFERRTAG(0xF8,'D','E','C') <span class="comment">///< Decoder not found</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="group__lavu__error.html#gaf7cbadf2ff7121084d2cde763f4e06b9"> 53</a></span> <span class="comment"></span>#define AVERROR_DEMUXER_NOT_FOUND FFERRTAG(0xF8,'D','E','M') <span class="comment">///< Demuxer not found</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga3fad023a4fafed6b6ec9148606a61979"> 54</a></span> <span class="comment"></span>#define AVERROR_ENCODER_NOT_FOUND FFERRTAG(0xF8,'E','N','C') <span class="comment">///< Encoder not found</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="group__lavu__error.html#gab4faa0afdf35076914824200331defff"> 55</a></span> <span class="comment"></span>#define AVERROR_EOF FFERRTAG( 'E','O','F',' ') <span class="comment">///< End of file</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga334ea23fd9e492cd0e718330f2353b6b"> 56</a></span> <span class="comment"></span>#define AVERROR_EXIT FFERRTAG( 'E','X','I','T') <span class="comment">///< Immediate exit was requested; the called function should not be restarted</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga9c520e483ba8648495620ffdb4c491f2"> 57</a></span> <span class="comment"></span>#define AVERROR_EXTERNAL FFERRTAG( 'E','X','T',' ') <span class="comment">///< Generic error in an external library</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga2c3b3ab0404e827aeba274b571368e95"> 58</a></span> <span class="comment"></span>#define AVERROR_FILTER_NOT_FOUND FFERRTAG(0xF8,'F','I','L') <span class="comment">///< Filter not found</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="group__lavu__error.html#gaa6e5781e75b15ce44b0baea170c98a45"> 59</a></span> <span class="comment"></span>#define AVERROR_INVALIDDATA FFERRTAG( 'I','N','D','A') <span class="comment">///< Invalid data found when processing input</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga7ef1e1f3183e34e731185967d416911d"> 60</a></span> <span class="comment"></span>#define AVERROR_MUXER_NOT_FOUND FFERRTAG(0xF8,'M','U','X') <span class="comment">///< Muxer not found</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="group__lavu__error.html#gaf5a8745befceddae26f2dc11ecf21679"> 61</a></span> <span class="comment"></span>#define AVERROR_OPTION_NOT_FOUND FFERRTAG(0xF8,'O','P','T') <span class="comment">///< Option not found</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga67a27567a9e5b7037fee072fbcc34dbf"> 62</a></span> <span class="comment"></span>#define AVERROR_PATCHWELCOME FFERRTAG( 'P','A','W','E') <span class="comment">///< Not yet implemented in FFmpeg, patches welcome</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga474b367d2654695a79c07998329c7896"> 63</a></span> <span class="comment"></span>#define AVERROR_PROTOCOL_NOT_FOUND FFERRTAG(0xF8,'P','R','O') <span class="comment">///< Protocol not found</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment"></span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="group__lavu__error.html#gab15683efe944a563b5c90dc6c5d5c17b"> 65</a></span> <span class="preprocessor">#define AVERROR_STREAM_NOT_FOUND FFERRTAG(0xF8,'S','T','R') </span><span class="comment">///< Stream not found</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment"></span><span class="comment">/**</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment"> * This is semantically identical to AVERROR_BUG</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"> * it has been introduced in Libav after our AVERROR_BUG and with a modified value.</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"> */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="group__lavu__error.html#gafdd5fd9898cc229e1856f858308d956e"> 70</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AVERROR_BUG2 FFERRTAG( 'B','U','G',' ')</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga4ebaa288c7684a26a591c501208910e4"> 71</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AVERROR_UNKNOWN FFERRTAG( 'U','N','K','N') </span><span class="comment">///< Unknown error, typically from an external library</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga3d2f16ec410d409c19e3547673b8469b"> 72</a></span> <span class="comment"></span>#define AVERROR_EXPERIMENTAL (-0x2bb2afa8) <span class="comment">///< Requested feature is flagged experimental. Set strict_std_compliance if you really want to use it.</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="group__lavu__error.html#gaa2999fcae06d67e3b9374f6c2c0ed559"> 73</a></span> <span class="comment"></span>#define AVERROR_INPUT_CHANGED (-0x636e6701) <span class="comment">///< Input changed between calls. Reconfiguration is required. (can be OR-ed with AVERROR_OUTPUT_CHANGED)</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga67501c4d8521285b405f555d2de71214"> 74</a></span> <span class="comment"></span>#define AVERROR_OUTPUT_CHANGED (-0x636e6702) <span class="comment">///< Output changed between calls. Reconfiguration is required. (can be OR-ed with AVERROR_INPUT_CHANGED)</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment"></span><span class="comment">/* HTTP & RTSP errors */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga2a19ca30d1962b51488a7210e8b68919"> 76</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AVERROR_HTTP_BAD_REQUEST FFERRTAG(0xF8,'4','0','0')</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="group__lavu__error.html#gacaebaf711c31f8ada97f87b42b58b794"> 77</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AVERROR_HTTP_UNAUTHORIZED FFERRTAG(0xF8,'4','0','1')</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga114337140a3fec85cf76736f8e779659"> 78</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AVERROR_HTTP_FORBIDDEN FFERRTAG(0xF8,'4','0','3')</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="group__lavu__error.html#gafa8673dfcb9f0359bb6f7dda408952c4"> 79</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AVERROR_HTTP_NOT_FOUND FFERRTAG(0xF8,'4','0','4')</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga696de4031a2188bdd1ee330a6c11cd0c"> 80</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AVERROR_HTTP_OTHER_4XX FFERRTAG(0xF8,'4','X','X')</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga47662fddadd1c84284b85154f5553afa"> 81</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AVERROR_HTTP_SERVER_ERROR FFERRTAG(0xF8,'5','X','X')</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga326c3f741a7adb148cdeaad68eea713d"> 83</a></span> <span class="preprocessor">#define AV_ERROR_MAX_STRING_SIZE 64</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="preprocessor"></span><span class="comment"></span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"> * Put a description of the AVERROR code errnum in errbuf.</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"> * In case of failure the global variable errno is set to indicate the</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"> * error. Even in case of failure av_strerror() will print a generic</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment"> * error message indicating the errnum provided to errbuf.</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment"> * @param errnum error code to describe</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment"> * @param errbuf buffer to which description is written</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"> * @param errbuf_size the size in bytes of errbuf</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment"> * @return 0 on success, a negative value if a description for errnum</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"> * cannot be found</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="keywordtype">int</span> <a class="code" href="group__lavu__error.html#ga5792b4a2d18d7d9cb0efbcfc335dce24">av_strerror</a>(<span class="keywordtype">int</span> errnum, <span class="keywordtype">char</span> *errbuf, <span class="keywordtype">size_t</span> errbuf_size);</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"></span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment"> * Fill the provided buffer with a string containing an error string</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="comment"> * corresponding to the AVERROR code errnum.</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment"> * @param errbuf a buffer</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment"> * @param errbuf_size size in bytes of errbuf</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment"> * @param errnum error code to describe</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment"> * @return the buffer in input, filled with the error description</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"> * @see av_strerror()</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="group__lavu__error.html#ga1eb28ee6abc94ec8210a8cb721d792b8"> 109</a></span> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">char</span> *<a class="code" href="group__lavu__error.html#ga1eb28ee6abc94ec8210a8cb721d792b8">av_make_error_string</a>(<span class="keywordtype">char</span> *errbuf, <span class="keywordtype">size_t</span> errbuf_size, <span class="keywordtype">int</span> errnum)</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> {</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="group__lavu__error.html#ga5792b4a2d18d7d9cb0efbcfc335dce24">av_strerror</a>(errnum, errbuf, errbuf_size);</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> errbuf;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> }</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment"></span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment"> * Convenience macro, the return value should be used only directly in</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment"> * function arguments but never stand-alone.</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="group__lavu__error.html#gac4f6e109c242c81aeee21868d3f35e12"> 119</a></span> <span class="preprocessor">#define av_err2str(errnum) \</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="preprocessor"> av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum)</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="preprocessor"></span><span class="comment"></span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="comment"> * @}</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="preprocessor">#endif </span><span class="comment">/* AVUTIL_ERROR_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="group__lavu__error_html_ga1eb28ee6abc94ec8210a8cb721d792b8"><div class="ttname"><a href="group__lavu__error.html#ga1eb28ee6abc94ec8210a8cb721d792b8">av_make_error_string</a></div><div class="ttdeci">static char * av_make_error_string(char *errbuf, size_t errbuf_size, int errnum)</div><div class="ttdoc">Fill the provided buffer with a string containing an error string corresponding to the AVERROR code e...</div><div class="ttdef"><b>Definition:</b> <a href="error_8h_source.html#l00109">error.h:109</a></div></div>
<div class="ttc" id="group__lavu__error_html_ga5792b4a2d18d7d9cb0efbcfc335dce24"><div class="ttname"><a href="group__lavu__error.html#ga5792b4a2d18d7d9cb0efbcfc335dce24">av_strerror</a></div><div class="ttdeci">int av_strerror(int errnum, char *errbuf, size_t errbuf_size)</div><div class="ttdoc">Put a description of the AVERROR code errnum in errbuf. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>