FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
AVPacket Struct Reference

This structure stores compressed data. More...

#include <avcodec.h>

Data Fields

AVBufferRefbuf
 A reference to the reference-counted buffer where the packet data is stored.
 
int64_t pts
 Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will be presented to the user.
 
int64_t dts
 Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed.
 
uint8_tdata
 
int size
 
int stream_index
 
int flags
 A combination of AV_PKT_FLAG values.
 
struct {
   uint8_t *   data
 
   int   size
 
   enum AVPacketSideDataType   type
 
side_data
 
int side_data_elems
 
int duration
 Duration of this packet in AVStream->time_base units, 0 if unknown.
 
attribute_deprecated void(* destruct )(struct AVPacket *)
 
attribute_deprecated voidpriv
 
int64_t pos
 byte position in stream, -1 if unknown
 
int64_t convergence_duration
 Time difference in AVStream->time_base units from the pts of this packet to the point at which the output from the decoder has converged independent from the availability of previous frames.
 

Detailed Description

This structure stores compressed data.

It is typically exported by demuxers and then passed as input to decoders, or received as output from encoders and then passed to muxers.

For video, it should typically contain one compressed frame. For audio it may contain several compressed frames.

AVPacket 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.

The semantics of data ownership depends on the buf or destruct (deprecated) fields. If either is set, the packet data is dynamically allocated and is valid indefinitely until av_free_packet() is called (which in turn calls av_buffer_unref()/the destruct callback to free the data). If neither is set, the packet data is typically backed by some static buffer somewhere and is only valid for a limited time (e.g. until the next read call when demuxing).

The side data is always allocated with av_malloc() and is freed in av_free_packet().

Examples:
avcodec.c, demuxing_decoding.c, filtering_audio.c, filtering_video.c, muxing.c, remuxing.c, and transcode_aac.c.

Definition at line 1091 of file avcodec.h.

Field Documentation

AVBufferRef* AVPacket::buf
int64_t AVPacket::pts

Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will be presented to the user.

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 AVPacket.

Examples:
avcodec.c, muxing.c, and remuxing.c.

Definition at line 1107 of file avcodec.h.

Referenced by a64multi_encode_frame(), aac_encode_frame(), aacPlus_encode_frame(), adx_read_packet(), amr_wb_encode_frame(), ape_read_packet(), aqt_read_header(), asf_write_packet(), ass_read_header(), audio_decode_example(), audio_decode_frame(), audio_read_packet(), av_init_packet(), av_interleaved_write_frame(), av_packet_copy_props(), av_read_frame(), av_write_uncoded_frame_internal(), avcodec_decode_subtitle2(), avcodec_encode_audio(), avcodec_encode_audio2(), avcodec_encode_video(), avcodec_encode_video2(), avisynth_read_packet_audio(), avisynth_read_packet_video(), avpriv_dv_produce_packet(), bfi_read_packet(), bmv_read_packet(), callback(), cdata_read_packet(), cin_read_packet(), cmp_pkt_sub_pos_ts(), cmp_pkt_sub_ts_pos(), compute_pkt_fields(), compute_pkt_fields2(), concat_read_packet(), decklink_write_audio_packet(), decklink_write_video_packet(), decode(), decode_audio(), decode_frame(), do_audio_out(), do_streamcopy(), do_subtitle_out(), do_video_out(), encode_frame(), encode_superframe(), estimate_timings_from_pts(), Faac_encode_frame(), fbdev_read_packet(), ff_audio_rechunk_interleave(), ff_decklink_write_packet(), ff_init_buffer_info(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_MPV_encode_picture(), ff_read_packet(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ff_subtitles_queue_finalize(), ff_subtitles_queue_insert(), ff_subtitles_queue_read_packet(), ff_subtitles_queue_seek(), ff_write_chained(), ffm_read_packet(), ffm_write_packet(), film_read_packet(), finalize_packet(), flac_decode_frame(), flac_encode_frame(), flush_encoders(), flush_packet(), flv_data_packet(), flv_read_packet(), flv_write_packet(), fourxm_read_packet(), framecrc_write_packet(), g729_read_packet(), get_needed_flags(), gif_decode_frame(), grab_read_packet(), gsm_read_packet(), hls_write_packet(), http_prepare_data(), img_read_packet(), interleave_new_audio_packet(), iss_read_packet(), ivf_write_packet(), jacosub_decode_frame(), jacosub_read_header(), lavfi_read_packet(), libopus_encode(), libschroedinger_decode_frame(), libschroedinger_encode_frame(), libshine_encode_frame(), libvorbis_encode_frame(), libx265_encode_frame(), load_ipmovie_packet(), log_packet(), lvf_read_packet(), main(), matroska_parse_frame(), matroska_parse_rm_audio(), matroska_parse_webvtt(), microdvd_decode_frame(), microdvd_read_header(), microdvd_write_packet(), mkv_write_block(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_vtt_blocks(), mmap_read_frame(), modplug_read_packet(), mov_create_chapter_track(), mov_read_packet(), mov_text_decode_frame(), mov_write_subtitle_end_packet(), mp3lame_encode_frame(), MPA_encode_frame(), mpc_read_packet(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_raw_read_packet(), mpegts_write_packet_internal(), mpl2_decode_frame(), mpl2_read_header(), mpsub_read_header(), msnwc_tcp_read_packet(), mv_read_packet(), mxf_read_packet(), mxf_read_packet_old(), mxf_set_audio_pts(), mxg_read_packet(), new_pes_packet(), nut_read_packet(), nut_write_packet(), nuv_packet(), ogg_read_packet(), ogg_write_packet(), output_packet(), parse_file(), parse_packet(), pjs_read_header(), pkt_dump_internal(), process_callback(), process_input(), pulse_read_packet(), pva_read_packet(), ra144_encode_frame(), raw_decode(), rawvideo_read_packet(), rdt_parse_packet(), read_frame_internal(), read_interval_packets(), read_packet(), read_thread(), realtext_decode_frame(), realtext_read_header(), reget_buffer_internal(), rl2_read_packet(), rm_assemble_video_frame(), roq_dpcm_encode_frame(), roq_read_packet(), rpl_read_packet(), rtp_write_packet(), sami_decode_frame(), sami_read_header(), sbg_read_packet(), search_hi_lo_keyframes(), search_sub_ts(), seg_write_packet(), seq_read_packet(), show_packet(), smacker_read_packet(), smjpeg_read_packet(), smjpeg_write_packet(), smvjpeg_decode_frame(), srt_decode_frame(), srt_read_header(), srt_write_packet(), Stagefright_decode_frame(), storeframe(), subtitle_thread(), subviewer1_read_header(), subviewer_decode_frame(), subviewer_read_header(), swf_read_packet(), tedcaptions_read_header(), tee_write_packet(), teletext_decode_frame(), text_decode_frame(), tta_encode_frame(), twolame_encode_frame(), update_initial_durations(), update_initial_timestamps(), update_wrap_reference(), vc1t_read_packet(), vc1test_write_packet(), videostream_cb(), vmd_read_packet(), vorbis_encode_frame(), vplayer_read_header(), wavpack_encode_frame(), wc3_read_packet(), webvtt_decode_frame(), webvtt_read_header(), webvtt_write_packet(), write_frame(), write_packet(), write_timestamp(), wv_read_packet(), wv_read_seek(), x11grab_read_packet(), X264_frame(), XAVS_frame(), xmv_fetch_audio_packet(), and xmv_fetch_video_packet().

int64_t AVPacket::dts

Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed.

Can be AV_NOPTS_VALUE if it is not stored in the file.

Examples:
avcodec.c, muxing.c, and remuxing.c.

Definition at line 1113 of file avcodec.h.

Referenced by a64multi_encode_frame(), asf_parse_packet(), asf_read_pts(), asf_write_packet(), audio_decode_example(), audio_decode_frame(), audio_write_frame(), audio_write_packet(), av_init_packet(), av_interleaved_write_frame(), av_packet_copy_props(), av_read_frame(), av_write_uncoded_frame_internal(), avcodec_decode_audio4(), avcodec_decode_video2(), avcodec_encode_audio2(), avcodec_encode_video2(), avformat_find_stream_info(), avi_write_packet(), avisynth_read_packet_audio(), avisynth_read_packet_video(), compute_pkt_fields(), compute_pkt_fields2(), concat_read_packet(), decode(), decode_frame(), decode_video(), do_audio_out(), do_streamcopy(), do_video_out(), encode_frame(), ff_audio_rechunk_interleave(), ff_interleave_add_packet(), ff_interleave_packet_per_dts(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_MPV_encode_picture(), ff_read_packet(), ff_subtitles_queue_insert(), ff_subtitles_queue_read_packet(), ff_thread_decode_frame(), ff_write_chained(), ffm_read_packet(), ffm_write_packet(), finalize_packet(), flush_encoders(), flv_data_packet(), flv_read_packet(), flv_write_packet(), framecrc_write_packet(), g729_read_packet(), get_subtitle_pkt(), gif_decode_frame(), gxf_compare_field_nb(), gxf_packet(), gxf_write_media_preamble(), hds_write_packet(), hls_read_packet(), http_prepare_data(), interleave_compare_dts(), interleave_new_audio_packet(), ism_write_packet(), libschroedinger_encode_frame(), libx265_encode_frame(), log_packet(), lxf_read_packet(), main(), matroska_parse_frame(), mkv_write_block(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_vtt_blocks(), modplug_read_packet(), mov_create_chapter_track(), mov_read_packet(), mov_write_packet(), mov_write_single_packet(), mov_write_subtitle_end_packet(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_get_dts(), mpegts_write_packet_internal(), msnwc_tcp_read_packet(), mxf_compare_timestamps(), mxf_read_packet(), mxf_read_packet_old(), mxg_read_packet(), new_pes_packet(), nsv_read_chunk(), nut_write_packet(), ogg_read_packet(), output_packet(), parse_packet(), pkt_dump_internal(), pmp_packet(), process_input(), pulse_write_packet(), r3d_read_reda(), r3d_read_redv(), rawvideo_read_packet(), read_frame_internal(), read_packet(), report_new_stream(), sbg_read_packet(), search_hi_lo_keyframes(), seek_frame_generic(), seg_write_packet(), show_packet(), storeframe(), tee_write_packet(), tta_read_packet(), update_initial_durations(), update_initial_timestamps(), update_wrap_reference(), write_frame(), write_packet(), X264_frame(), XAVS_frame(), xmv_fetch_audio_packet(), and xmv_fetch_video_packet().

uint8_t* AVPacket::data
Examples:
avcodec.c, demuxing_decoding.c, filtering_audio.c, muxing.c, and transcode_aac.c.

Definition at line 1114 of file avcodec.h.

Referenced by a64multi_encode_frame(), aac_decode_frame(), aac_encode_frame(), aac_parse_packet(), aacPlus_encode_frame(), aasc_decode_frame(), ac3_decode_frame(), adpcm_decode_frame(), adts_write_packet(), adx_decode_frame(), adx_encode_frame(), adx_read_packet(), aic_decode_frame(), aiff_write_packet(), alac_decode_frame(), amr_handle_packet(), amr_read_packet(), amr_wb_encode_frame(), amrnb_decode_frame(), amrwb_decode_frame(), ape_decode_frame(), ape_read_packet(), append_packet_chunked(), asf_parse_packet(), asf_read_header(), asf_write_packet(), ast_write_packet(), atrac1_decode_frame(), atrac3_decode_frame(), atrac3p_decode_frame(), audio_decode_example(), audio_decode_frame(), audio_encode_example(), audio_read_packet(), audio_write_frame(), audio_write_packet(), aura_decode_frame(), av_copy_packet_side_data(), av_destruct_packet(), av_dup_packet(), av_free_packet(), av_get_packet(), av_grow_packet(), av_new_packet(), av_packet_copy_props(), av_packet_free_side_data(), av_packet_from_data(), av_packet_get_side_data(), av_packet_merge_side_data(), av_packet_new_side_data(), av_packet_ref(), av_packet_split_side_data(), av_packet_unref(), av_shrink_packet(), av_write_uncoded_frame_internal(), avcodec_decode_audio4(), avcodec_decode_subtitle2(), avcodec_encode_audio(), avcodec_encode_audio2(), avcodec_encode_video(), avcodec_encode_video2(), avformat_find_stream_info(), avi_write_packet(), avisynth_read_packet_audio(), avisynth_read_packet_video(), avpriv_dv_produce_packet(), avs_decode_frame(), avs_read_video_packet(), avui_decode_frame(), avui_encode_frame(), bethsoftvid_decode_frame(), bfi_decode_frame(), bmp_decode_frame(), bmp_encode_frame(), bmv_aud_decode_frame(), bmv_read_packet(), brpix_decode_frame(), caca_write_packet(), caf_write_packet(), callback(), cavs_decode_frame(), cdg_decode_frame(), cdxl_decode_frame(), cdxl_read_packet(), cin_read_packet(), cinaudio_decode_frame(), cinepak_decode_frame(), cinepak_encode_frame(), cinvideo_decode_frame(), cllc_decode_frame(), cmv_decode_frame(), cng_decode_frame(), cng_encode_frame(), compute_pkt_fields2(), cook_decode_frame(), copy_packet_data(), cpia_decode_frame(), crc_write_packet(), cyuv_decode_frame(), daud_write_packet(), dca_decode_frame(), decklink_write_audio_packet(), decklink_write_video_packet(), decode(), decode_frame(), decode_packet(), decode_tag(), decode_write_frame(), dfa_decode_frame(), dfa_read_packet(), dirac_decode_frame(), dnxhd_decode_frame(), dnxhd_encode_picture(), do_audio_out(), do_subtitle_out(), do_video_out(), dpcm_decode_frame(), dv_extract_audio_info(), dv_write_packet(), dvbsub_decode(), dvdsub_decode(), dvvideo_decode_frame(), dvvideo_encode_frame(), dxa_read_packet(), ea_read_packet(), eightsvx_decode_frame(), encode_callback(), encode_frame(), encode_nals(), encode_picture_ls(), encode_superframe(), escape124_decode_frame(), escape130_decode_frame(), evrc_decode_frame(), extract_header(), extract_mpeg4_header(), Faac_encode_frame(), fbdev_read_packet(), fbdev_write_packet(), fdk_aac_decode_frame(), ff_alloc_packet2(), ff_audio_rechunk_interleave(), ff_flac_parse_picture(), ff_free_stream(), ff_h263_decode_frame(), ff_h263_handle_packet(), ff_id3v2_parse_apic(), ff_id3v2_write_apic(), ff_interleave_add_packet(), ff_ivi_decode_frame(), ff_mjpeg_decode_frame(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_MPV_encode_picture(), ff_raw_read_partial_packet(), ff_raw_write_packet(), ff_read_packet(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ff_rtp_finalize_packet(), ff_rv34_decode_frame(), ff_spdif_read_packet(), ff_subtitles_queue_insert(), ff_thread_video_encode_frame(), ff_twinvq_decode_frame(), ff_vp56_decode_frame(), ff_vp8_decode_frame(), ffm_read_packet(), ffm_write_packet(), fic_decode_frame(), filter_frame(), filter_packet(), find_best_header_idx(), flac_decode_frame(), flac_write_packet(), flashsv2_encode_frame(), flashsv_decode_block(), flashsv_decode_frame(), flashsv_encode_frame(), flic_decode_frame(), flush_encoders(), flush_packet(), flv_write_packet(), fourxm_read_packet(), framecrc_write_packet(), frm_read_packet(), g2m_decode_frame(), g722_decode_frame(), g723_1_decode_frame(), g723_1_read_packet(), get_needed_flags(), get_subtitle_pkt(), get_video_frame(), gif_decode_frame(), gif_encode_frame(), grab_read_packet(), gsm_decode_frame(), gxf_write_media_preamble(), gxf_write_packet(), h261_decode_frame(), h264_decode_frame(), h264_handle_packet(), hevc_decode_frame(), hls_read_packet(), hnm_decode_frame(), hnm_read_header(), ico_write_packet(), idcin_decode_frame(), iff_read_packet(), ilbc_decode_frame(), ilbc_encode_frame(), ilbc_read_packet(), ilbc_write_packet(), imc_decode_frame(), img_read_packet(), init_packet(), interleave_new_audio_packet(), ipvideo_decode_frame(), ir2_decode_frame(), ivf_write_packet(), jacosub_decode_frame(), jacosub_read_header(), jpeg2000_decode_frame(), lag_decode_frame(), latm_decode_frame(), latm_parse_packet(), latm_write_packet(), lavfi_read_packet(), libcelt_dec_decode(), libgsm_decode_frame(), libgsm_encode_frame(), libopenjpeg_decode_frame(), libopenjpeg_encode_frame(), libopus_decode(), libopus_encode(), libschroedinger_decode_frame(), libschroedinger_encode_frame(), libshine_encode_frame(), libspeex_decode_frame(), libvorbis_encode_frame(), libwebp_encode_frame(), libx265_encode_frame(), ljpeg_encode_frame(), load_ipmovie_packet(), lxf_read_packet(), mace_decode_frame(), main(), matroska_parse_frame(), matroska_parse_rm_audio(), matroska_parse_webvtt(), microdvd_decode_frame(), microdvd_write_packet(), mimic_decode_frame(), mjpegb_decode_frame(), mkv_write_block(), mkv_write_srt_blocks(), mkv_write_vtt_blocks(), mm_decode_frame(), mmap_read_frame(), modplug_read_packet(), mov_create_timecode_track(), mov_parse_mpeg2_frame(), mov_parse_vc1_frame(), mov_read_packet(), mov_text_decode_frame(), mov_write_subtitle_end_packet(), movie_push_frame(), mp3_read_packet(), mp3_write_audio_packet(), mp3lame_encode_frame(), mp_decode_frame(), MPA_encode_frame(), mpc7_decode_frame(), mpc8_decode_frame(), mpc_read_packet(), mpeg_decode_frame(), mpeg_mux_write_packet(), mpeg_parse_packet(), mpegts_raw_read_packet(), mpegts_write_packet_internal(), mpjpeg_write_packet(), mpl2_decode_frame(), msrle_decode_frame(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_frame(), msvideo1_decode_frame(), mvc_decode_frame(), mxf_decrypt_triplet(), mxf_get_d10_aes3_packet(), mxf_parse_dnxhd_frame(), mxf_parse_dv_frame(), mxf_parse_mpeg2_frame(), mxf_write_d10_audio_packet(), mxf_write_d10_video_packet(), mxf_write_packet(), mxg_read_packet(), mxpeg_decode_frame(), new_pes_packet(), nsv_read_chunk(), nsv_read_close(), nsv_read_header(), nsv_read_packet(), nut_read_packet(), nut_write_packet(), nuv_packet(), ogg_read_packet(), oggvorbis_decode_frame(), oma_read_packet(), opengl_get_plane_pointer(), output_packet(), packet_queue_put_nullpacket(), paf_aud_decode(), paf_vid_decode(), pam_encode_frame(), parse_packet(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcm_dvd_decode_frame(), pcm_encode_frame(), pcx_decode_frame(), pcx_encode_frame(), pkt_dump_internal(), pnm_decode_frame(), pnm_encode_frame(), probe_codec(), process_callback(), process_frame(), prores_encode_frame(), ptx_decode_frame(), pulse_read_packet(), pulse_write_packet(), qcelp_decode_frame(), qdm2_decode_frame(), qdm2_restore_block(), qt_rtp_free(), qt_rtp_parse_packet(), qtrle_decode_frame(), qtrle_encode_frame(), ra144_decode_frame(), ra144_encode_frame(), ra288_decode_frame(), raw_decode(), raw_encode(), read_access_unit(), read_frame(), read_gab2_sub(), read_interval_packets(), read_packet(), read_packet_gme(), realtext_decode_frame(), recode_subtitle(), reset_packet(), return_stored_frame(), rl2_decode_frame(), rm_ac3_swap_bytes(), rm_assemble_video_frame(), rm_write_packet(), roq_decode_frame(), roq_dpcm_encode_frame(), roq_encode_frame(), roq_read_packet(), rpza_decode_frame(), rso_write_packet(), rtp_parse_packet_internal(), rtp_write_packet(), rv10_decode_frame(), s302m_decode_frame(), s302m_encode2_frame(), sami_decode_frame(), sbg_read_packet(), sdl_write_packet(), sdr2_read_packet(), seq_read_packet(), seqvideo_decode_frame(), sgirle_decode_frame(), shorten_decode_frame(), show_packet(), siff_read_packet(), sipr_decode_frame(), smacker_read_packet(), smc_decode_frame(), smjpeg_write_packet(), smka_decode_frame(), smush_read_packet(), sp5x_decode_frame(), spdif_header_aac(), spdif_header_ac3(), spdif_header_dts(), spdif_header_dts4(), spdif_header_eac3(), spdif_header_mpeg(), spdif_header_truehd(), spdif_write_packet(), srt_decode_frame(), srt_write_packet(), Stagefright_decode_frame(), store_packet(), storeframe(), str_read_close(), str_read_packet(), submit_packet(), subtitle_thread(), subviewer_decode_frame(), sunrast_decode_frame(), sunrast_encode_frame(), svq1_decode_frame(), svq1_encode_frame(), svq3_decode_frame(), swf_read_packet(), swf_write_packet(), tak_decode_frame(), targa_encode_frame(), teletext_decode_frame(), text_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), thp_read_packet(), tmv_decode_frame(), tqi_decode_frame(), truemotion1_decode_frame(), truespeech_decode_frame(), try_decode_frame(), tscc2_decode_frame(), tta_decode_frame(), tta_encode_frame(), twolame_encode_frame(), txd_decode_frame(), ulti_decode_frame(), utvideo_decode_frame(), utvideo_encode_frame(), v308_decode_frame(), v308_encode_frame(), v408_decode_frame(), v408_encode_frame(), v410_decode_frame(), v410_encode_frame(), vble_decode_frame(), vc1_decode_frame(), vc1test_write_packet(), vcr1_decode_frame(), video_decode_example(), video_encode_example(), videostream_cb(), vmd_read_packet(), vmdaudio_decode_frame(), vmdvideo_decode_frame(), voc_write_packet(), vorbis_decode_frame(), vorbis_encode_frame(), vp3_decode_frame(), vp8_decode(), vp8_lossy_decode_frame(), vp9_decode_frame(), vqa_decode_frame(), vqf_read_packet(), wavesynth_decode(), wavpack_decode_frame(), wavpack_encode_frame(), wc3_read_header(), wc3_read_packet(), webp_decode_frame(), webvtt_decode_frame(), webvtt_write_packet(), wma_decode_superframe(), wmavoice_decode_packet(), worker(), write_frame(), write_packet(), write_sm_data(), write_table_entries_attrib(), write_video_frame(), ws_snd_decode_frame(), wsaud_read_packet(), wsvqa_read_packet(), wv_read_packet(), wv_write_packet(), x11grab_read_packet(), xan_decode_frame(), XAVS_frame(), xbm_decode_frame(), xbm_encode_frame(), xface_decode_frame(), xface_encode_frame(), xiph_handle_packet(), xmv_fetch_video_packet(), xv_write_packet(), xvid_encode_frame(), xvid_strip_vol_header(), xwd_decode_frame(), xwd_encode_frame(), y216_decode_frame(), y41p_decode_frame(), y41p_encode_frame(), yop_decode_frame(), yop_read_packet(), yuv4_decode_frame(), yuv4_encode_frame(), zero12v_decode_frame(), and zerocodec_decode_frame().

int AVPacket::size
Examples:
avcodec.c, demuxing_decoding.c, filtering_audio.c, muxing.c, and transcode_aac.c.

Definition at line 1115 of file avcodec.h.

Referenced by a64multi_encode_frame(), aac_decode_frame(), aac_encode_frame(), aacPlus_encode_frame(), aasc_decode_frame(), ac3_decode_frame(), adpcm_decode_frame(), adts_write_packet(), adx_decode_frame(), adx_encode_frame(), adx_read_packet(), aic_decode_frame(), aiff_write_packet(), alac_decode_frame(), alac_encode_frame(), amr_handle_packet(), amr_wb_encode_frame(), amrnb_decode_frame(), amrwb_decode_frame(), ape_decode_frame(), ape_read_packet(), append_packet_chunked(), asf_parse_packet(), asf_read_header(), asf_read_pts(), asf_write_packet(), ast_write_packet(), atrac1_decode_frame(), atrac3_decode_frame(), atrac3p_decode_frame(), attachment_value_size(), audio_decode_example(), audio_decode_frame(), audio_encode_example(), audio_read_packet(), audio_write_frame(), audio_write_packet(), aura_decode_frame(), av_append_packet(), av_copy_packet_side_data(), av_destruct_packet(), av_free_packet(), av_get_packet(), av_grow_packet(), av_interleaved_write_frame(), av_new_packet(), av_packet_copy_props(), av_packet_from_data(), av_packet_get_side_data(), av_packet_merge_side_data(), av_packet_new_side_data(), av_packet_ref(), av_packet_shrink_side_data(), av_packet_split_side_data(), av_packet_unref(), av_shrink_packet(), av_write_uncoded_frame_internal(), avcodec_decode_audio4(), avcodec_decode_subtitle2(), avcodec_decode_video2(), avcodec_encode_audio(), avcodec_encode_audio2(), avcodec_encode_video(), avcodec_encode_video2(), avformat_find_stream_info(), avi_write_packet(), avisynth_read_packet_audio(), avisynth_read_packet_video(), avpriv_dv_get_packet(), avpriv_dv_produce_packet(), avs_decode_frame(), avs_read_video_packet(), avui_decode_frame(), bethsoftvid_decode_frame(), bfi_decode_frame(), bmp_decode_frame(), bmv_aud_decode_frame(), bmv_read_packet(), brpix_decode_frame(), caf_write_packet(), cavs_decode_frame(), cdg_decode_frame(), cdxl_decode_frame(), cinaudio_decode_frame(), cinepak_decode_frame(), cinepak_encode_frame(), cinvideo_decode_frame(), cllc_decode_frame(), cmv_decode_frame(), cng_decode_frame(), cng_encode_frame(), compute_pkt_fields(), compute_pkt_fields2(), cook_decode_frame(), copy_packet_data(), cpia_decode_frame(), crc_write_packet(), cyuv_decode_frame(), daud_write_packet(), dc1394_read_common(), dca_decode_frame(), decklink_write_audio_packet(), decode(), decode_audio(), decode_frame(), decode_packet(), decode_tag(), decode_video(), decode_write_frame(), dfa_decode_frame(), dfa_read_packet(), dirac_decode_frame(), dnxhd_decode_frame(), do_audio_out(), do_streamcopy(), do_subtitle_out(), do_video_out(), dpcm_decode_frame(), dshow_read_packet(), dv_extract_audio_info(), dv_write_packet(), dvbsub_decode(), dvdsub_decode(), dvvideo_decode_frame(), ea_read_packet(), eightsvx_decode_frame(), encode_callback(), encode_frame(), encode_nals(), encode_picture_ls(), encode_superframe(), escape124_decode_frame(), escape130_decode_frame(), estimate_timings_from_pts(), evrc_decode_frame(), extract_header(), extract_mpeg4_header(), Faac_encode_frame(), fdk_aac_decode_frame(), ff_alloc_packet2(), ff_audio_rechunk_interleave(), ff_compute_frame_duration(), ff_flac_parse_picture(), ff_h263_decode_frame(), ff_id3v2_parse_apic(), ff_id3v2_write_apic(), ff_init_buffer_info(), ff_interleave_add_packet(), ff_ivi_decode_frame(), ff_mjpeg_decode_frame(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_MPV_encode_picture(), ff_raw_write_packet(), ff_read_packet(), ff_rtp_finalize_packet(), ff_rv34_decode_frame(), ff_spdif_read_packet(), ff_subtitles_queue_insert(), ff_thread_decode_frame(), ff_twinvq_decode_frame(), ff_vp56_decode_frame(), ff_vp8_decode_frame(), ffm_write_packet(), fic_decode_frame(), filter_frame(), filter_packet(), find_best_header_idx(), flac_decode_frame(), flac_encode_frame(), flac_write_packet(), flashsv2_encode_frame(), flashsv_decode_frame(), flashsv_encode_frame(), flic_decode_frame(), flush_encoders(), flush_packet(), flv_data_packet(), flv_write_packet(), framecrc_write_packet(), frm_read_packet(), g2m_decode_frame(), g722_decode_frame(), g723_1_decode_frame(), g723_1_read_packet(), get_needed_flags(), gif_decode_frame(), gif_encode_frame(), grab_read_packet(), gsm_decode_frame(), gxf_write_media_preamble(), gxf_write_packet(), h261_decode_frame(), h264_decode_frame(), hevc_decode_frame(), hnm_decode_frame(), hnm_read_close(), hnm_read_header(), ico_write_packet(), idcin_decode_frame(), ilbc_decode_frame(), ilbc_encode_frame(), ilbc_write_packet(), imc_decode_frame(), img_read_packet(), init_packet(), ipvideo_decode_frame(), ir2_decode_frame(), ivf_write_packet(), jacosub_decode_frame(), jpeg2000_decode_frame(), lag_decode_frame(), latm_decode_frame(), latm_write_packet(), lavfi_read_packet(), libcelt_dec_decode(), libgsm_decode_frame(), libopenjpeg_decode_frame(), libopus_decode(), libopus_encode(), libschroedinger_decode_frame(), libshine_encode_frame(), libspeex_decode_frame(), libvorbis_encode_frame(), libwebp_encode_frame(), ljpeg_encode_frame(), mace_decode_frame(), main(), microdvd_decode_frame(), microdvd_write_packet(), mimic_decode_frame(), mjpegb_decode_frame(), mkv_write_block(), mkv_write_header(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_srt_blocks(), mkv_write_trailer(), mkv_write_vtt_blocks(), mm_decode_frame(), mmap_read_frame(), modplug_read_packet(), mov_create_timecode_track(), mov_parse_mpeg2_frame(), mov_parse_vc1_frame(), mov_read_packet(), mov_text_decode_frame(), mov_write_packet(), mov_write_single_packet(), mov_write_subtitle_end_packet(), movie_push_frame(), mp3_read_packet(), mp3_write_audio_packet(), mp3_xing_add_frame(), mp3lame_encode_frame(), mp_decode_frame(), MPA_encode_frame(), mpc7_decode_frame(), mpc8_decode_frame(), mpc_read_packet(), mpeg_decode_frame(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_read_packet(), mpegts_write_packet_internal(), mpjpeg_write_packet(), msrle_decode_frame(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_frame(), msvideo1_decode_frame(), mvc_decode_frame(), mxf_parse_dnxhd_frame(), mxf_parse_dv_frame(), mxf_parse_mpeg2_frame(), mxf_set_audio_pts(), mxf_write_d10_audio_packet(), mxf_write_d10_video_packet(), mxf_write_packet(), mxg_read_packet(), mxpeg_decode_frame(), new_pes_packet(), nsv_read_packet(), nut_write_packet(), oggvorbis_decode_frame(), output_packet(), packet_queue_get(), packet_queue_put_nullpacket(), packet_queue_put_private(), paf_aud_decode(), paf_vid_decode(), pam_encode_frame(), parse_packet(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcm_dvd_decode_frame(), pcx_decode_frame(), pcx_encode_frame(), pkt_dump_internal(), pnm_decode_frame(), pnm_encode_frame(), probe_codec(), process_frame(), prores_encode_frame(), ptx_decode_frame(), pulse_read_packet(), pulse_write_packet(), qcelp_decode_frame(), qdm2_decode_frame(), qdm2_restore_block(), qt_rtp_parse_packet(), qtrle_decode_frame(), qtrle_encode_frame(), ra144_decode_frame(), ra144_encode_frame(), ra288_decode_frame(), raw_decode(), raw_encode(), read_access_unit(), read_frame_internal(), read_gab2_sub(), read_interval_packets(), read_packet(), read_packet_gme(), realtext_decode_frame(), recode_subtitle(), rl2_decode_frame(), rm_ac3_swap_bytes(), rm_assemble_video_frame(), rm_write_packet(), roq_decode_frame(), roq_encode_frame(), rpza_decode_frame(), rso_write_packet(), rtp_write_packet(), rv10_decode_frame(), s302m_decode_frame(), sami_decode_frame(), sbg_read_packet(), seqvideo_decode_frame(), sgirle_decode_frame(), shorten_decode_frame(), show_packet(), siff_read_packet(), sipr_decode_frame(), smacker_read_packet(), smc_decode_frame(), smjpeg_write_packet(), smka_decode_frame(), sp5x_decode_frame(), spdif_header_dts(), spdif_header_dts4(), spdif_header_eac3(), spdif_header_truehd(), spdif_write_packet(), srt_decode_frame(), srt_write_packet(), Stagefright_decode_frame(), storeframe(), str_read_packet(), submit_packet(), subviewer_decode_frame(), sunrast_decode_frame(), sunrast_encode_frame(), svq1_decode_frame(), svq1_encode_frame(), svq3_decode_frame(), swf_read_packet(), swf_write_packet(), tak_decode_frame(), targa_encode_frame(), teletext_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), tmv_decode_frame(), tqi_decode_frame(), transcode_subtitles(), truemotion1_decode_frame(), truespeech_decode_frame(), try_decode_frame(), tscc2_decode_frame(), tta_decode_frame(), tta_encode_frame(), twolame_encode_frame(), txd_decode_frame(), ulti_decode_frame(), utvideo_decode_frame(), utvideo_encode_frame(), v308_decode_frame(), v408_decode_frame(), v410_decode_frame(), v4l2_read_packet(), vble_decode_frame(), vc1_decode_frame(), vc1t_read_packet(), vc1test_write_packet(), vcr1_decode_frame(), vfw_read_packet(), video_decode_example(), video_encode_example(), vmdaudio_decode_frame(), vmdvideo_decode_frame(), voc_write_packet(), vorbis_decode_frame(), vorbis_encode_frame(), vp3_decode_frame(), vp8_decode(), vp8_lossy_decode_frame(), vp9_decode_frame(), vqa_decode_frame(), wavesynth_decode(), wavpack_decode_frame(), wavpack_encode_frame(), wc3_read_close(), wc3_read_header(), wc3_read_packet(), webp_decode_frame(), webvtt_decode_frame(), webvtt_write_packet(), wma_decode_superframe(), wmavoice_decode_packet(), worker(), write_frame(), write_packet(), write_sm_data(), write_table_entries_attrib(), write_table_redirector_legacy_attrib(), write_video_frame(), ws_snd_decode_frame(), wv_read_packet(), wv_write_packet(), x11grab_read_packet(), xan_decode_frame(), xbm_decode_frame(), xbm_encode_frame(), xface_decode_frame(), xvid_encode_frame(), xvid_strip_vol_header(), xwd_decode_frame(), y216_decode_frame(), y41p_decode_frame(), yop_decode_frame(), yop_read_packet(), yuv4_decode_frame(), zero12v_decode_frame(), and zerocodec_decode_frame().

int AVPacket::stream_index
Examples:
demuxing_decoding.c, filtering_audio.c, filtering_video.c, muxing.c, and remuxing.c.

Definition at line 1116 of file avcodec.h.

Referenced by aac_parse_packet(), adp_read_packet(), adx_read_packet(), aea_read_packet(), afc_read_packet(), aiff_read_packet(), aiff_write_packet(), amr_handle_packet(), amr_read_packet(), apc_read_packet(), ape_read_packet(), ape_tag_read_field(), asf_parse_packet(), asf_read_picture(), asf_read_pts(), asf_write_packet(), asfrtp_parse_packet(), ast_read_packet(), audio_decode_frame(), av_init_packet(), av_interleaved_write_frame(), av_packet_copy_props(), av_read_frame(), av_write_frame(), av_write_trailer(), av_write_uncoded_frame_internal(), avformat_find_stream_info(), avi_write_packet(), avisynth_read_packet_audio(), avisynth_read_packet_video(), avpriv_dv_produce_packet(), avs_read_audio_packet(), avs_read_video_packet(), bfi_read_packet(), bmv_read_packet(), callback(), cdxl_read_packet(), check_packet(), cin_read_packet(), compute_pkt_fields(), compute_pkt_fields2(), concat_read_packet(), daud_packet(), dc1394_read_common(), decode_frame(), decode_packet(), dv_extract_audio_info(), dv_write_packet(), dxa_read_packet(), ea_read_packet(), estimate_timings_from_pts(), extract_mpeg4_header(), ff_audio_rechunk_interleave(), ff_decklink_write_packet(), ff_flac_parse_picture(), ff_h263_handle_packet(), ff_id3v2_parse_apic(), ff_id3v2_write_apic(), ff_interleave_add_packet(), ff_interleave_packet_per_dts(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_pcm_read_packet(), ff_raw_read_partial_packet(), ff_read_packet(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ff_rtp_finalize_packet(), ff_subtitles_queue_seek(), ff_write_chained(), ffm_read_packet(), ffm_write_packet(), film_read_packet(), filter_packet(), flv_data_packet(), flv_read_packet(), flv_write_packet(), fourxm_read_packet(), framecrc_write_packet(), frm_read_packet(), g723_1_read_packet(), g729_read_packet(), get_attachment(), get_needed_flags(), get_subtitle_pkt(), gif_read_packet(), gsm_read_packet(), gxf_compare_field_nb(), gxf_interleave_packet(), gxf_packet(), gxf_write_media_preamble(), gxf_write_packet(), h264_handle_packet(), hds_write_packet(), hls_read_packet(), hls_write_packet(), http_prepare_data(), ico_write_packet(), idcin_read_packet(), iff_read_packet(), ilbc_read_packet(), img_read_packet(), ingenient_read_packet(), interleave_compare_dts(), interleave_new_audio_packet(), ism_write_packet(), iss_read_packet(), latm_parse_packet(), lavfi_read_packet(), lmlm4_read_packet(), load_ipmovie_packet(), log_packet(), lvf_read_packet(), lxf_read_packet(), main(), matroska_parse_frame(), matroska_parse_rm_audio(), matroska_parse_webvtt(), mkv_write_block(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_vtt_blocks(), mmf_read_packet(), modplug_read_packet(), mov_create_chapter_track(), mov_create_timecode_track(), mov_read_covr(), mov_read_packet(), mov_write_single_packet(), mov_write_subtitle_end_packet(), movie_push_frame(), mp3_read_packet(), mpc8_read_packet(), mpc_read_packet(), mpeg_mux_write_packet(), mpeg_parse_packet(), mpegps_read_packet(), mpegts_get_dts(), mpegts_raw_read_packet(), mpegts_write_packet_internal(), msnwc_tcp_read_packet(), mtv_read_packet(), mv_read_packet(), mxf_compare_timestamps(), mxf_decrypt_triplet(), mxf_interleave_get_packet(), mxf_read_packet(), mxf_read_packet_old(), mxf_set_audio_pts(), mxf_write_packet(), mxg_read_packet(), nc_read_packet(), new_pes_packet(), nsv_read_chunk(), nut_read_packet(), nut_write_packet(), nuv_packet(), ogg_read_packet(), ogg_write_packet(), oma_read_packet(), output_packet(), packet_queue_put_nullpacket(), parse_packet(), pkt_dump_internal(), pmp_packet(), process_frame(), process_input(), pva_read_packet(), qdm2_restore_block(), qt_rtp_parse_packet(), r3d_read_reda(), r3d_read_redv(), raw_read_packet(), rawvideo_read_packet(), rdt_parse_packet(), read_frame(), read_frame_internal(), read_interval_packets(), read_packet(), read_thread(), redspark_read_packet(), report_new_stream(), return_stored_frame(), rl2_read_packet(), rm_write_packet(), roq_read_packet(), rpl_read_packet(), rsd_read_packet(), rtp_parse_packet_internal(), rtp_write_packet(), rtsp_write_packet(), sap_write_packet(), sdr2_read_packet(), search_hi_lo_keyframes(), seek_frame_generic(), seg_write_packet(), seq_read_packet(), show_packet(), siff_read_packet(), smacker_read_packet(), smjpeg_read_packet(), smjpeg_write_packet(), smush_read_packet(), sol_read_packet(), store_packet(), str_read_packet(), stream_component_open(), swf_read_packet(), swf_write_packet(), tee_write_packet(), thp_read_packet(), tmv_read_packet(), txd_read_packet(), update_initial_durations(), update_initial_timestamps(), vid_read_packet(), vivo_read_packet(), vmd_read_packet(), vqf_read_packet(), wc3_read_packet(), write_frame(), write_packet(), write_sm_data(), write_table_entries_attrib(), write_table_redirector_legacy_attrib(), write_timestamp(), write_video_frame(), wsaud_read_packet(), wsvqa_read_packet(), wv_read_packet(), xa_read_packet(), xiph_handle_packet(), xmv_fetch_audio_packet(), xmv_fetch_video_packet(), xwma_read_packet(), yop_read_packet(), and yuv4_read_packet().

int AVPacket::flags

A combination of AV_PKT_FLAG values.

Examples:
muxing.c.

Definition at line 1120 of file avcodec.h.

Referenced by a64multi_encode_frame(), aiff_read_packet(), apc_read_packet(), ape_tag_read_field(), append_packet_chunked(), asf_parse_packet(), asf_read_picture(), asf_read_pts(), asf_write_packet(), av_init_packet(), av_packet_copy_props(), av_read_frame(), av_write_uncoded_frame_internal(), avcodec_encode_audio(), avcodec_encode_audio2(), avcodec_encode_video(), avi_write_packet(), avpriv_dv_produce_packet(), avs_read_audio_packet(), avs_read_video_packet(), avui_encode_frame(), bmp_encode_frame(), cdxl_read_packet(), cinepak_encode_frame(), compute_pkt_fields(), compute_pkt_fields2(), dc1394_read_common(), decode_frame(), dnxhd_encode_picture(), do_streamcopy(), do_video_out(), dv_extract_audio_info(), dvvideo_encode_frame(), ea_read_packet(), encode_frame(), encode_picture_ls(), ff_flac_parse_picture(), ff_id3v2_parse_apic(), ff_interleave_add_packet(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_MPV_encode_picture(), ff_pcm_read_packet(), ff_read_packet(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ff_subtitles_queue_insert(), ffm_read_packet(), ffm_write_packet(), filter_packet(), flashsv2_encode_frame(), flashsv_decode_frame(), flashsv_encode_frame(), flv_data_packet(), flv_read_packet(), flv_write_packet(), framecrc_write_packet(), get_attachment(), get_needed_flags(), gif_encode_frame(), gif_read_packet(), h263_handle_packet(), hds_write_packet(), hls_read_packet(), hls_write_packet(), http_prepare_data(), idcin_read_packet(), iff_read_packet(), img_read_packet(), ism_write_packet(), libopenjpeg_encode_frame(), libschroedinger_encode_frame(), libwebp_encode_frame(), libx265_encode_frame(), ljpeg_encode_frame(), lmlm4_read_packet(), lvf_read_packet(), lxf_read_packet(), main(), matroska_parse_frame(), mkv_write_packet(), mkv_write_packet_internal(), modplug_read_packet(), mov_parse_vc1_frame(), mov_read_covr(), mov_read_packet(), mov_write_single_packet(), mp3_read_packet(), mpeg_mux_write_packet(), mpegts_write_packet_internal(), msnwc_tcp_read_packet(), mv_read_packet(), new_pes_packet(), nsv_read_chunk(), nut_read_packet(), nut_write_packet(), nuv_packet(), ogg_read_packet(), ogg_write_packet(), oma_read_packet(), pam_encode_frame(), parse_packet(), pcx_encode_frame(), pkt_dump_internal(), pnm_encode_frame(), prores_encode_frame(), qt_rtp_parse_packet(), qtrle_encode_frame(), raw_encode(), read_frame(), read_frame_internal(), read_packet(), rm_write_packet(), roq_encode_frame(), rpl_read_packet(), sdr2_read_packet(), search_hi_lo_keyframes(), seek_frame_generic(), seg_write_packet(), show_packet(), siff_read_packet(), smush_read_packet(), sol_read_packet(), Stagefright_decode_frame(), storeframe(), sunrast_encode_frame(), svq1_encode_frame(), targa_encode_frame(), tmv_read_packet(), utvideo_encode_frame(), v308_encode_frame(), v408_encode_frame(), v410_encode_frame(), vc1t_read_packet(), vc1test_write_packet(), vid_read_packet(), vp8_handle_packet(), write_frame(), write_packet(), write_timestamp(), write_video_frame(), X264_frame(), XAVS_frame(), xbm_encode_frame(), xface_encode_frame(), xmv_fetch_video_packet(), xvid_encode_frame(), xwd_encode_frame(), y41p_encode_frame(), yop_read_packet(), yuv4_encode_frame(), and zerocodec_decode_frame().

enum AVPacketSideDataType AVPacket::type
struct { ... } * AVPacket::side_data
int AVPacket::side_data_elems
int AVPacket::duration

Duration of this packet in AVStream->time_base units, 0 if unknown.

Equals next_pts - this_pts in presentation order.

Examples:
muxing.c, and remuxing.c.

Definition at line 1136 of file avcodec.h.

Referenced by aac_encode_frame(), adx_read_packet(), aiff_read_packet(), amr_read_packet(), aqt_read_header(), asf_write_packet(), ass_read_header(), audio_write_frame(), audio_write_packet(), av_init_packet(), av_packet_copy_props(), av_read_frame(), av_write_uncoded_frame_internal(), avcodec_decode_subtitle2(), avcodec_encode_audio2(), avformat_find_stream_info(), avisynth_read_packet_audio(), avisynth_read_packet_video(), bmv_read_packet(), cdxl_read_packet(), cin_read_packet(), compute_pkt_fields(), compute_pkt_fields2(), do_audio_out(), do_subtitle_out(), ea_read_packet(), encode_frame(), Faac_encode_frame(), ff_audio_rechunk_interleave(), ff_init_buffer_info(), ff_interleave_add_packet(), ff_mov_write_packet(), ff_subtitles_queue_finalize(), ff_subtitles_queue_seek(), ff_write_chained(), ffm_read_packet(), ffm_write_packet(), flac_encode_frame(), flush_encoders(), flv_write_packet(), framecrc_write_packet(), g723_1_read_packet(), gif_decode_frame(), gif_read_packet(), gsm_read_packet(), gxf_interleave_packet(), gxf_packet(), http_prepare_data(), idcin_read_packet(), ilbc_read_packet(), interleave_new_audio_packet(), jacosub_decode_frame(), jacosub_read_header(), libopus_encode(), libshine_encode_frame(), libvorbis_encode_frame(), log_packet(), main(), matroska_parse_frame(), matroska_parse_webvtt(), microdvd_decode_frame(), microdvd_read_header(), microdvd_write_packet(), mkv_write_block(), mkv_write_packet_internal(), mkv_write_vtt_blocks(), mov_read_packet(), mov_write_subtitle_end_packet(), mp3lame_encode_frame(), mpc8_read_packet(), mpegts_raw_read_packet(), mpl2_read_header(), mpsub_read_header(), ogg_read_packet(), ogg_write_packet(), output_packet(), parse_file(), parse_packet(), pjs_read_header(), pkt_dump_internal(), pulse_write_packet(), r3d_read_reda(), r3d_read_redv(), ra144_encode_frame(), raw_decode(), read_frame(), read_frame_internal(), read_packet(), realtext_decode_frame(), realtext_read_header(), redspark_read_packet(), roq_dpcm_encode_frame(), rpl_read_packet(), sami_decode_frame(), sami_read_header(), sbg_read_packet(), seg_write_packet(), show_packet(), siff_read_packet(), smjpeg_write_packet(), smush_read_packet(), srt_decode_frame(), srt_read_header(), srt_write_packet(), str_read_packet(), subviewer1_read_header(), subviewer_decode_frame(), subviewer_read_header(), tedcaptions_read_header(), tee_write_packet(), thp_read_packet(), tta_encode_frame(), tta_read_packet(), twolame_encode_frame(), update_initial_durations(), vid_read_packet(), vorbis_encode_frame(), vplayer_read_header(), vqf_read_packet(), wavpack_encode_frame(), webvtt_decode_frame(), webvtt_read_header(), webvtt_write_packet(), write_frame(), write_packet(), wsaud_read_packet(), wsvqa_read_packet(), wv_read_packet(), xa_read_packet(), xmv_fetch_audio_packet(), and xmv_fetch_video_packet().

attribute_deprecated void(* AVPacket::destruct)(struct AVPacket *)
attribute_deprecated void* AVPacket::priv

Definition at line 1141 of file avcodec.h.

int64_t AVPacket::pos

byte position in stream, -1 if unknown

Examples:
remuxing.c.

Definition at line 1143 of file avcodec.h.

Referenced by adx_read_packet(), amr_read_packet(), append_packet_chunked(), aqt_read_header(), asf_parse_packet(), ass_read_header(), ast_read_packet(), av_get_packet(), av_init_packet(), av_packet_copy_props(), av_read_frame(), avcodec_decode_video2(), avpriv_dv_produce_packet(), cdxl_read_packet(), cmp_pkt_sub_pos_ts(), cmp_pkt_sub_ts_pos(), decode_frame(), event_loop(), ff_init_buffer_info(), ff_raw_read_partial_packet(), ff_spdif_read_packet(), ffm_read_packet(), fourxm_read_packet(), g723_1_read_packet(), g729_read_packet(), gsm_read_packet(), ilbc_read_packet(), jacosub_read_header(), lavfi_read_packet(), load_ipmovie_packet(), lvf_read_packet(), main(), matroska_parse_frame(), matroska_parse_rm_audio(), matroska_parse_webvtt(), microdvd_read_header(), mov_read_packet(), mpegps_read_packet(), mpegts_get_dts(), mpegts_raw_read_packet(), mpl2_read_header(), mpsub_read_header(), mtv_read_packet(), mxf_read_packet_old(), new_pes_packet(), nut_read_packet(), nuv_packet(), ogg_read_packet(), parse_file(), parse_packet(), pjs_read_header(), raw_decode(), rawvideo_read_packet(), read_frame(), read_frame_internal(), read_packet(), realtext_read_header(), report_new_stream(), rm_assemble_video_frame(), roq_read_packet(), sami_read_header(), sdr2_read_packet(), search_hi_lo_keyframes(), show_packet(), smjpeg_read_packet(), srt_read_header(), str_read_packet(), subviewer1_read_header(), subviewer_read_header(), swf_read_packet(), vc1t_read_packet(), vmd_read_packet(), vplayer_read_header(), vqf_read_packet(), webvtt_read_header(), and yop_read_packet().

int64_t AVPacket::convergence_duration

Time difference in AVStream->time_base units from the pts of this packet to the point at which the output from the decoder has converged independent from the availability of previous frames.

That is, the frames are virtually identical no matter if decoding started from the very first frame or from this keyframe. Is AV_NOPTS_VALUE if unknown. This field is not the display duration of the current packet. This field has no meaning if the packet does not have AV_PKT_FLAG_KEY set.

The purpose of this field is to allow seeking in streams that have no keyframes in the conventional sense. It corresponds to the recovery point SEI in H.264 and match_time_delta in NUT. It is also essential for some types of subtitle streams to ensure that all subtitles are correctly displayed after seeking.

Definition at line 1162 of file avcodec.h.

Referenced by av_init_packet(), av_packet_copy_props(), compute_pkt_fields(), matroska_parse_frame(), mkv_write_packet_internal(), show_packet(), and srt_write_packet().


The documentation for this struct was generated from the following file: