This file is indexed.

/usr/share/doc/ffmpeg/api/structAVPacket.html is in ffmpeg-doc 7:3.4.2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
<!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.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FFmpeg: AVPacket Struct Reference</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/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></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 id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">FFmpeg
   &#160;<span id="projectnumber">3.4.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</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><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">AVPacket Struct Reference<div class="ingroups"><a class="el" href="group__libavc.html">libavcodec</a> &raquo; <a class="el" href="group__lavc__core.html">Core functions/structures.</a> &raquo; <a class="el" href="group__lavc__packet.html">AVPacket</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>This structure stores compressed data.  
 <a href="structAVPacket.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="avcodec_8h_source.html">libavcodec/avcodec.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a3bf81872813551fe9343dd0e09993e38"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structAVBufferRef.html">AVBufferRef</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPacket.html#a3bf81872813551fe9343dd0e09993e38">buf</a></td></tr>
<tr class="memdesc:a3bf81872813551fe9343dd0e09993e38"><td class="mdescLeft">&#160;</td><td class="mdescRight">A reference to the reference-counted buffer where the packet data is stored.  <a href="#a3bf81872813551fe9343dd0e09993e38">More...</a><br /></td></tr>
<tr class="separator:a3bf81872813551fe9343dd0e09993e38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73bde0a37f3b1efc839f11295bfbf42a"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPacket.html#a73bde0a37f3b1efc839f11295bfbf42a">pts</a></td></tr>
<tr class="memdesc:a73bde0a37f3b1efc839f11295bfbf42a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Presentation timestamp in AVStream-&gt;time_base units; the time at which the decompressed packet will be presented to the user.  <a href="#a73bde0a37f3b1efc839f11295bfbf42a">More...</a><br /></td></tr>
<tr class="separator:a73bde0a37f3b1efc839f11295bfbf42a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85dbbd306b44b02390cd91c45e6a0f76"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPacket.html#a85dbbd306b44b02390cd91c45e6a0f76">dts</a></td></tr>
<tr class="memdesc:a85dbbd306b44b02390cd91c45e6a0f76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decompression timestamp in AVStream-&gt;time_base units; the time at which the packet is decompressed.  <a href="#a85dbbd306b44b02390cd91c45e6a0f76">More...</a><br /></td></tr>
<tr class="separator:a85dbbd306b44b02390cd91c45e6a0f76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf4fe58dfcc7c232c1f2268b539d8367"><td class="memItemLeft" align="right" valign="top">uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPacket.html#aaf4fe58dfcc7c232c1f2268b539d8367">data</a></td></tr>
<tr class="separator:aaf4fe58dfcc7c232c1f2268b539d8367"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d1ea19f63eb107111fd650ca514d1f4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPacket.html#a4d1ea19f63eb107111fd650ca514d1f4">size</a></td></tr>
<tr class="separator:a4d1ea19f63eb107111fd650ca514d1f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d1cb9b5a32b00fb6edc81ea3aae2a49"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPacket.html#a0d1cb9b5a32b00fb6edc81ea3aae2a49">stream_index</a></td></tr>
<tr class="separator:a0d1cb9b5a32b00fb6edc81ea3aae2a49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a437be96a9da675f12caa228a9c81bd82"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPacket.html#a437be96a9da675f12caa228a9c81bd82">flags</a></td></tr>
<tr class="memdesc:a437be96a9da675f12caa228a9c81bd82"><td class="mdescLeft">&#160;</td><td class="mdescRight">A combination of AV_PKT_FLAG values.  <a href="#a437be96a9da675f12caa228a9c81bd82">More...</a><br /></td></tr>
<tr class="separator:a437be96a9da675f12caa228a9c81bd82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac55bfef91c33f02704ba76518d0f294c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structAVPacketSideData.html">AVPacketSideData</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPacket.html#ac55bfef91c33f02704ba76518d0f294c">side_data</a></td></tr>
<tr class="memdesc:ac55bfef91c33f02704ba76518d0f294c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Additional packet data that can be provided by the container.  <a href="#ac55bfef91c33f02704ba76518d0f294c">More...</a><br /></td></tr>
<tr class="separator:ac55bfef91c33f02704ba76518d0f294c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af415e25244b26921e8fc249d45499b84"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPacket.html#af415e25244b26921e8fc249d45499b84">side_data_elems</a></td></tr>
<tr class="separator:af415e25244b26921e8fc249d45499b84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a622e758be29fd500aed0ffdc069550f7"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPacket.html#a622e758be29fd500aed0ffdc069550f7">duration</a></td></tr>
<tr class="memdesc:a622e758be29fd500aed0ffdc069550f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Duration of this packet in AVStream-&gt;time_base units, 0 if unknown.  <a href="#a622e758be29fd500aed0ffdc069550f7">More...</a><br /></td></tr>
<tr class="separator:a622e758be29fd500aed0ffdc069550f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5793d8195cf4789dfb3913b7a693903"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPacket.html#ab5793d8195cf4789dfb3913b7a693903">pos</a></td></tr>
<tr class="memdesc:ab5793d8195cf4789dfb3913b7a693903"><td class="mdescLeft">&#160;</td><td class="mdescRight">byte position in stream, -1 if unknown  <a href="#ab5793d8195cf4789dfb3913b7a693903">More...</a><br /></td></tr>
<tr class="separator:ab5793d8195cf4789dfb3913b7a693903"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06d8ce396bab5e9756f8cc4f0bb93d53"><td class="memItemLeft" align="right" valign="top"><a class="el" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a> int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPacket.html#a06d8ce396bab5e9756f8cc4f0bb93d53">convergence_duration</a></td></tr>
<tr class="separator:a06d8ce396bab5e9756f8cc4f0bb93d53"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This structure stores compressed data. </p>
<p>It is typically exported by demuxers and then passed as input to decoders, or received as output from encoders and then passed to muxers.</p>
<p>For video, it should typically contain one compressed frame. For audio it may contain several compressed frames. Encoders are allowed to output empty packets, with no compressed data, containing only side data (e.g. to update some stream parameters at the end of encoding).</p>
<p><a class="el" href="structAVPacket.html" title="This structure stores compressed data. ">AVPacket</a> is one of the few structs in FFmpeg, whose size is a part of public ABI. Thus it may be allocated on stack and no new fields can be added to it without libavcodec and libavformat major bump.</p>
<p>The semantics of data ownership depends on the buf field. If it is set, the packet data is dynamically allocated and is valid indefinitely until a call to <a class="el" href="group__lavc__packet.html#ga63d5a489b419bd5d45cfd09091cbcbc2" title="Wipe the packet. ">av_packet_unref()</a> reduces the reference count to 0.</p>
<p>If the buf field is not set <a class="el" href="group__lavc__packet.html#gadb05d71fa2ea7b7fd3e8cfc6d9065a47" title="Setup a new reference to the data described by a given packet. ">av_packet_ref()</a> would make a copy instead of increasing the reference count.</p>
<p>The side data is always allocated with <a class="el" href="group__lavu__mem__funcs.html#ga7c4f0fe9fe716121ce05f7170810ce8e" title="Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...">av_malloc()</a>, copied by <a class="el" href="group__lavc__packet.html#gadb05d71fa2ea7b7fd3e8cfc6d9065a47" title="Setup a new reference to the data described by a given packet. ">av_packet_ref()</a> and freed by <a class="el" href="group__lavc__packet.html#ga63d5a489b419bd5d45cfd09091cbcbc2" title="Wipe the packet. ">av_packet_unref()</a>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__lavc__packet.html#gadb05d71fa2ea7b7fd3e8cfc6d9065a47" title="Setup a new reference to the data described by a given packet. ">av_packet_ref</a> </dd>
<dd>
<a class="el" href="group__lavc__packet.html#ga63d5a489b419bd5d45cfd09091cbcbc2" title="Wipe the packet. ">av_packet_unref</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="decode_audio_8c-example.html#_a3">decode_audio.c</a>, <a class="el" href="decode_video_8c-example.html#_a6">decode_video.c</a>, <a class="el" href="demuxing_decoding_8c-example.html#_a23">demuxing_decoding.c</a>, <a class="el" href="encode_audio_8c-example.html#_a14">encode_audio.c</a>, <a class="el" href="encode_video_8c-example.html#_a4">encode_video.c</a>, <a class="el" href="filtering_audio_8c-example.html#_a72">filtering_audio.c</a>, <a class="el" href="filtering_video_8c-example.html#_a66">filtering_video.c</a>, <a class="el" href="hw_decode_8c-example.html#_a23">hw_decode.c</a>, <a class="el" href="muxing_8c-example.html#_a18">muxing.c</a>, <a class="el" href="remuxing_8c-example.html#_a3">remuxing.c</a>, <a class="el" href="transcode_aac_8c-example.html#_a48">transcode_aac.c</a>, and <a class="el" href="transcoding_8c-example.html#_a102">transcoding.c</a>.</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="avcodec_8h_source.html#l01656">1656</a> of file <a class="el" href="avcodec_8h_source.html">avcodec.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a3bf81872813551fe9343dd0e09993e38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bf81872813551fe9343dd0e09993e38">&#9670;&nbsp;</a></span>buf</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structAVBufferRef.html">AVBufferRef</a>* AVPacket::buf</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A reference to the reference-counted buffer where the packet data is stored. </p>
<p>May be NULL, then the packet data is not reference-counted. </p>

<p class="definition">Definition at line <a class="el" href="avcodec_8h_source.html#l01662">1662</a> of file <a class="el" href="avcodec_8h_source.html">avcodec.h</a>.</p>

</div>
</div>
<a id="a73bde0a37f3b1efc839f11295bfbf42a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73bde0a37f3b1efc839f11295bfbf42a">&#9670;&nbsp;</a></span>pts</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int64_t AVPacket::pts</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Presentation timestamp in AVStream-&gt;time_base units; the time at which the decompressed packet will be presented to the user. </p>
<p>Can be AV_NOPTS_VALUE if it is not stored in the file. pts MUST be larger or equal to dts as presentation cannot happen before decompression, unless one wants to view hex dumps. Some formats misuse the terms dts and pts/cts to mean something different. Such timestamps must be converted to true pts/dts before they are stored in <a class="el" href="structAVPacket.html" title="This structure stores compressed data. ">AVPacket</a>. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="encode_video_8c-example.html#a11">encode_video.c</a>, <a class="el" href="muxing_8c-example.html#a25">muxing.c</a>, and <a class="el" href="remuxing_8c-example.html#a10">remuxing.c</a>.</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="avcodec_8h_source.html#l01672">1672</a> of file <a class="el" href="avcodec_8h_source.html">avcodec.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="encode__video_8c_source.html#l00039">encode()</a>, <a class="el" href="muxing_8c_source.html#l00070">log_packet()</a>, and <a class="el" href="remuxing_8c_source.html#l00046">main()</a>.</p>

</div>
</div>
<a id="a85dbbd306b44b02390cd91c45e6a0f76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a85dbbd306b44b02390cd91c45e6a0f76">&#9670;&nbsp;</a></span>dts</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int64_t AVPacket::dts</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Decompression timestamp in AVStream-&gt;time_base units; the time at which the packet is decompressed. </p>
<p>Can be AV_NOPTS_VALUE if it is not stored in the file. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="muxing_8c-example.html#a27">muxing.c</a>, and <a class="el" href="remuxing_8c-example.html#a12">remuxing.c</a>.</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="avcodec_8h_source.html#l01678">1678</a> of file <a class="el" href="avcodec_8h_source.html">avcodec.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="muxing_8c_source.html#l00070">log_packet()</a>, and <a class="el" href="remuxing_8c_source.html#l00046">main()</a>.</p>

</div>
</div>
<a id="aaf4fe58dfcc7c232c1f2268b539d8367"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf4fe58dfcc7c232c1f2268b539d8367">&#9670;&nbsp;</a></span>data</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t* AVPacket::data</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="decode_audio_8c-example.html#a32">decode_audio.c</a>, <a class="el" href="decode_video_8c-example.html#a32">decode_video.c</a>, <a class="el" href="demuxing_decoding_8c-example.html#a86">demuxing_decoding.c</a>, <a class="el" href="encode_audio_8c-example.html#a20">encode_audio.c</a>, <a class="el" href="encode_video_8c-example.html#a13">encode_video.c</a>, <a class="el" href="hw_decode_8c-example.html#a63">hw_decode.c</a>, <a class="el" href="transcode_aac_8c-example.html#a50">transcode_aac.c</a>, and <a class="el" href="transcoding_8c-example.html#a106">transcoding.c</a>.</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="avcodec_8h_source.html#l01679">1679</a> of file <a class="el" href="avcodec_8h_source.html">avcodec.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="encode__audio_8c_source.html#l00095">encode()</a>, <a class="el" href="transcoding_8c_source.html#l00405">encode_write_frame()</a>, <a class="el" href="transcode__aac_8c_source.html#l00234">init_packet()</a>, and <a class="el" href="decode__audio_8c_source.html#l00076">main()</a>.</p>

</div>
</div>
<a id="a4d1ea19f63eb107111fd650ca514d1f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d1ea19f63eb107111fd650ca514d1f4">&#9670;&nbsp;</a></span>size</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AVPacket::size</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="decode_audio_8c-example.html#a33">decode_audio.c</a>, <a class="el" href="decode_video_8c-example.html#a33">decode_video.c</a>, <a class="el" href="demuxing_decoding_8c-example.html#a29">demuxing_decoding.c</a>, <a class="el" href="encode_audio_8c-example.html#a21">encode_audio.c</a>, <a class="el" href="encode_video_8c-example.html#a12">encode_video.c</a>, <a class="el" href="hw_decode_8c-example.html#a64">hw_decode.c</a>, <a class="el" href="transcode_aac_8c-example.html#a51">transcode_aac.c</a>, and <a class="el" href="transcoding_8c-example.html#a107">transcoding.c</a>.</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="avcodec_8h_source.html#l01680">1680</a> of file <a class="el" href="avcodec_8h_source.html">avcodec.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="demuxing__decoding_8c_source.html#l00064">decode_packet()</a>, <a class="el" href="encode__audio_8c_source.html#l00095">encode()</a>, <a class="el" href="transcoding_8c_source.html#l00405">encode_write_frame()</a>, <a class="el" href="transcode__aac_8c_source.html#l00234">init_packet()</a>, and <a class="el" href="decode__audio_8c_source.html#l00076">main()</a>.</p>

</div>
</div>
<a id="a0d1cb9b5a32b00fb6edc81ea3aae2a49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d1cb9b5a32b00fb6edc81ea3aae2a49">&#9670;&nbsp;</a></span>stream_index</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AVPacket::stream_index</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="demuxing_decoding_8c-example.html#a30">demuxing_decoding.c</a>, <a class="el" href="filtering_audio_8c-example.html#a77">filtering_audio.c</a>, <a class="el" href="filtering_video_8c-example.html#a71">filtering_video.c</a>, <a class="el" href="hw_decode_8c-example.html#a61">hw_decode.c</a>, <a class="el" href="muxing_8c-example.html#a22">muxing.c</a>, <a class="el" href="remuxing_8c-example.html#a7">remuxing.c</a>, and <a class="el" href="transcoding_8c-example.html#a110">transcoding.c</a>.</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="avcodec_8h_source.html#l01681">1681</a> of file <a class="el" href="avcodec_8h_source.html">avcodec.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="demuxing__decoding_8c_source.html#l00064">decode_packet()</a>, <a class="el" href="transcoding_8c_source.html#l00405">encode_write_frame()</a>, <a class="el" href="muxing_8c_source.html#l00070">log_packet()</a>, <a class="el" href="extract__mvs_8c_source.html#l00121">main()</a>, and <a class="el" href="muxing_8c_source.html#l00081">write_frame()</a>.</p>

</div>
</div>
<a id="a437be96a9da675f12caa228a9c81bd82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a437be96a9da675f12caa228a9c81bd82">&#9670;&nbsp;</a></span>flags</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AVPacket::flags</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A combination of AV_PKT_FLAG values. </p>

<p class="definition">Definition at line <a class="el" href="avcodec_8h_source.html#l01685">1685</a> of file <a class="el" href="avcodec_8h_source.html">avcodec.h</a>.</p>

</div>
</div>
<a id="ac55bfef91c33f02704ba76518d0f294c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac55bfef91c33f02704ba76518d0f294c">&#9670;&nbsp;</a></span>side_data</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structAVPacketSideData.html">AVPacketSideData</a>* AVPacket::side_data</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Additional packet data that can be provided by the container. </p>
<p>Packet can contain several types of side information. </p>

<p class="definition">Definition at line <a class="el" href="avcodec_8h_source.html#l01690">1690</a> of file <a class="el" href="avcodec_8h_source.html">avcodec.h</a>.</p>

</div>
</div>
<a id="af415e25244b26921e8fc249d45499b84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af415e25244b26921e8fc249d45499b84">&#9670;&nbsp;</a></span>side_data_elems</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AVPacket::side_data_elems</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="avcodec_8h_source.html#l01691">1691</a> of file <a class="el" href="avcodec_8h_source.html">avcodec.h</a>.</p>

</div>
</div>
<a id="a622e758be29fd500aed0ffdc069550f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a622e758be29fd500aed0ffdc069550f7">&#9670;&nbsp;</a></span>duration</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int64_t AVPacket::duration</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Duration of this packet in AVStream-&gt;time_base units, 0 if unknown. </p>
<p>Equals next_pts - this_pts in presentation order. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="muxing_8c-example.html#a28">muxing.c</a>, and <a class="el" href="remuxing_8c-example.html#a13">remuxing.c</a>.</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="avcodec_8h_source.html#l01697">1697</a> of file <a class="el" href="avcodec_8h_source.html">avcodec.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="muxing_8c_source.html#l00070">log_packet()</a>, and <a class="el" href="remuxing_8c_source.html#l00046">main()</a>.</p>

</div>
</div>
<a id="ab5793d8195cf4789dfb3913b7a693903"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5793d8195cf4789dfb3913b7a693903">&#9670;&nbsp;</a></span>pos</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int64_t AVPacket::pos</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>byte position in stream, -1 if unknown </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="remuxing_8c-example.html#a48">remuxing.c</a>.</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="avcodec_8h_source.html#l01699">1699</a> of file <a class="el" href="avcodec_8h_source.html">avcodec.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="remuxing_8c_source.html#l00046">main()</a>.</p>

</div>
</div>
<a id="a06d8ce396bab5e9756f8cc4f0bb93d53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06d8ce396bab5e9756f8cc4f0bb93d53">&#9670;&nbsp;</a></span>convergence_duration</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a> int64_t AVPacket::convergence_duration</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000044">Deprecated:</a></b></dt><dd>Same as the duration field, but as int64_t.</dd></dl>
<p>This was required for Matroska subtitles, whose duration values could overflow when the duration field was still an int. </p>

<p class="definition">Definition at line <a class="el" href="avcodec_8h_source.html#l01708">1708</a> of file <a class="el" href="avcodec_8h_source.html">avcodec.h</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>libavcodec/<a class="el" href="avcodec_8h_source.html">avcodec.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>