FFmpeg
Data Fields
AVPacket Struct Reference

This structure stores compressed data. More...

#include <packet.h>

Data Fields

AVBufferRefbuf
 A reference to the reference-counted buffer where the packet data is stored. More...
 
int64_t pts
 Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will be presented to the user. More...
 
int64_t dts
 Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed. More...
 
uint8_t * data
 
int size
 
int stream_index
 
int flags
 A combination of AV_PKT_FLAG values. More...
 
AVPacketSideDataside_data
 Additional packet data that can be provided by the container. More...
 
int side_data_elems
 
int64_t duration
 Duration of this packet in AVStream->time_base units, 0 if unknown. More...
 
int64_t pos
 byte position in stream, -1 if unknown More...
 
void * opaque
 for some private data of the user More...
 
AVBufferRefopaque_ref
 AVBufferRef for free use by the API user. More...
 
AVRational time_base
 Time base of the packet's timestamps. More...
 

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

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 av_packet_unref() reduces the reference count to 0.

If the buf field is not set av_packet_ref() would make a copy instead of increasing the reference count.

The side data is always allocated with av_malloc(), copied by av_packet_ref() and freed by av_packet_unref().

sizeof(AVPacket) being a part of the public ABI is deprecated. once av_init_packet() is removed, new packets will only be able to be allocated with av_packet_alloc(), and new fields may be added to the end of the struct with a minor bump.

See also
av_packet_alloc
av_packet_ref
av_packet_unref
Examples
decode_audio.c, decode_filter_audio.c, decode_filter_video.c, decode_video.c, demux_decode.c, encode_audio.c, encode_video.c, extract_mvs.c, hw_decode.c, mux.c, qsv_decode.c, qsv_transcode.c, remux.c, transcode.c, transcode_aac.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 499 of file packet.h.

Field Documentation

◆ buf

AVBufferRef* AVPacket::buf

◆ pts

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
encode_video.c, mux.c, and remux.c.

Definition at line 515 of file packet.h.

Referenced by a64multi_encode_frame(), aac_encode_frame(), aal_read_packet(), aax_read_packet(), add_event(), adx_read_packet(), amf_copy_buffer(), amr_wb_encode_frame(), ape_read_packet(), apng_read_packet(), aptx_encode_frame(), aqt_read_header(), argo_brp_read_packet(), aribcaption_decode(), asf_parse_packet(), asf_write_packet(), ass_read_header(), audio_read_packet(), av1_frame_merge_filter(), av_packet_copy_props(), av_packet_rescale_ts(), av_read_frame(), avcodec_decode_subtitle2(), avf_read_packet(), avformat_find_stream_info(), avisynth_read_packet_audio(), avisynth_read_packet_video(), bfi_read_packet(), bmv_read_packet(), callback(), cdata_read_packet(), check_pkt(), check_sync_pes(), cin_read_packet(), cine_read_packet(), compute_crc_of_packets(), compute_muxer_pkt_fields(), compute_pkt_fields(), concat_read_packet(), create_subcc_packet(), cuvid_decode_packet(), dash_read_packet(), dash_write_packet(), dat_read_packet(), davs2_decode_frame(), dc1394_read_packet(), decklink_write_audio_packet(), decklink_write_video_packet(), decode_frame(), decode_simple_internal(), decoder_thread(), demux_audio(), demux_flush(), demux_send(), demux_video(), dhav_read_packet(), do_subtitle_out(), drain_packet(), drop_dups(), dsf_read_packet(), dv_error_marker_filter(), dvdvideo_read_packet(), eb_receive_packet(), enc_stats_write(), encode(), encode_apng(), encode_frame(), encode_superframe(), estimate_timings_from_pts(), evc_frame_merge_filter(), fbdev_read_packet(), ff_ac3_encode_frame_common_end(), ff_decklink_packet_queue_peekpts(), ff_decode_frame_props_from_pkt(), ff_encode_encode_cb(), ff_img_read_packet(), ff_mediacodec_dec_send(), ff_mov_add_hinted_packet(), ff_mov_generate_squashed_ttml_packet(), ff_mov_write_packet(), ff_mpv_encode_picture(), ff_qsv_encode(), 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_v4l2_buffer_avpkt_to_buf(), ff_v4l2_buffer_buf_to_avpkt(), ff_vaapi_encode_receive_packet(), ff_voc_get_packet(), ff_write_chained(), ffat_decode(), ffat_encode(), ffmmal_add_packet(), fifo_test_packet(), fifo_thread_attempt_recovery(), fifo_thread_process_recovery_failure(), fifo_thread_write_packet(), fill_timing_for_id3_timestamped_stream(), film_read_packet(), film_write_packet(), finalize_packet(), flac_decode_frame(), flac_encode_frame(), flac_read_timestamp(), flv_data_packet(), flv_read_packet(), flv_write_packet(), fourxm_read_packet(), frame_data_apply(), framecrc_write_packet(), g729_read_packet(), gdigrab_read_packet(), get_needed_flags(), get_packet_defaults(), gif_get_delay(), grab_read_packet(), gsm_read_packet(), gxf_interleave_packet(), handle_avoid_negative_ts(), handle_klv(), hls_write_packet(), ifv_read_packet(), image_available(), imf_read_packet(), initializations(), input_packet_process(), input_thread(), iss_read_packet(), ist_dts_update(), ivf_write_packet(), ivr_read_packet(), jacosub_read_header(), kmsgrab_read_packet(), lavfi_read_packet(), libaribb24_decode(), libdav1d_receive_frame(), libjxl_receive_frame(), libkvazaar_encode(), libopus_encode(), librav1e_receive_packet(), libshine_encode_frame(), libuavs3d_decode_frame(), libvorbis_encode_frame(), libwebp_anim_encode_frame(), libx265_encode_frame(), libxeve_encode(), LLVMFuzzerTestOneInput(), load_ipmovie_packet(), log_packet(), lrc_read_header(), lrc_write_packet(), lvf_read_packet(), main(), mcc_read_header(), mediacodec_receive(), mf_sample_to_avpacket(), microdvd_read_header(), microdvd_write_packet(), mkv_write_block(), mkv_write_packet(), mkv_write_packet_internal(), mlp_encode_frame(), mmap_read_frame(), modplug_read_packet(), mov_create_chapter_track(), mov_create_timecode_track(), mov_finalize_packet(), mov_flush_fragment(), mov_read_packet(), mov_write_packet(), mov_write_single_packet(), mov_write_subtitle_end_packet(), mov_write_ttml_document_from_queue(), 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_read_header(), mpsub_read_header(), msnwc_tcp_read_packet(), mux_fixup_ts(), mux_frames(), mux_log_debug_ts(), mux_packet_filter(), mv_read_packet(), mxf_interleave(), mxf_set_audio_pts(), mxf_set_pts(), mxg_read_packet(), new_pes_packet(), noise(), nut_write_packet(), nuv_packet(), nvenc_set_timestamp(), of_streamcopy(), ogg_read_packet(), ogg_write_packet_internal(), omx_encode_frame(), opus_encode_frame(), packet_decode(), parse_file(), parse_packet(), pdv_read_packet(), pjs_read_header(), pkt_dump_internal(), prepare_input_packet(), prepare_packet(), process_callback(), pulse_read_packet(), pva_read_packet(), qsv_decode(), qsv_decode_header(), ra144_encode_frame(), rawvideo_read_packet(), rcwt_write_packet(), rdt_parse_packet(), read_frame_internal(), read_interval_packets(), read_packet(), read_packet_vs(), read_thread(), realtext_read_header(), recon_frame_process(), rkmpp_send_packet(), rl2_read_packet(), rm_assemble_video_frame(), roq_dpcm_encode_frame(), roq_read_packet(), rpl_read_packet(), rtp_mpegts_write_packet(), rtp_write_packet(), sami_read_header(), scc_read_header(), scc_write_packet(), scd_read_packet(), sch_dec_receive(), scte_data_cb(), search_sub_ts(), seg_write_packet(), seq_read_packet(), ser_read_packet(), set_output_frame(), setts_filter(), show_packet(), showinfo_filter(), signal_init_ts(), smacker_read_packet(), smjpeg_read_packet(), smjpeg_write_packet(), srt_write_packet(), stl_read_header(), storeframe(), subviewer1_read_header(), subviewer_read_header(), sup_read_packet(), sup_write_packet(), svc_decode_frame(), svc_encode_frame(), swf_read_packet(), tedcaptions_read_header(), teletext_decode_frame(), trace_headers(), transcode_subtitles(), ts_discontinuity_detect(), ts_discontinuity_process(), ts_fixup(), ttml_write_packet(), twolame_encode_frame(), update_dts_from_pts(), update_initial_durations(), update_timestamps(), update_wrap_reference(), vaapi_encode_set_output_property(), vc1t_read_packet(), vc1test_write_packet(), video_decode_example(), decklink_input_callback::VideoInputFrameArrived(), videostream_cb(), viv_read_packet(), vmd_read_packet(), vorbis_encode_frame(), vp9_decode_frame(), vp9_raw_reorder_filter(), vplayer_read_header(), vtenc_cm_to_avpacket(), wc3_read_packet(), webm_chunk_write_packet(), webp_write_packet(), webvtt_read_header(), webvtt_write_packet(), write_packet(), write_packet_common(), write_timestamp(), write_uncoded_frame_internal(), wv_read_packet(), X264_frame(), xavs2_encode_frame(), XAVS_frame(), xcbgrab_read_packet(), xmv_fetch_audio_packet(), xmv_fetch_video_packet(), and yuv4_read_packet().

◆ dts

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
mux.c, and remux.c.

Definition at line 521 of file packet.h.

Referenced by a64multi_encode_frame(), amf_copy_buffer(), apng_read_packet(), asf_parse_packet(), asf_read_packet(), asf_read_payload(), asf_read_pts(), asf_read_subpayload(), asf_read_timestamp(), asf_write_packet(), audio_write_frame(), audio_write_packet(), av_packet_copy_props(), av_packet_rescale_ts(), av_read_frame(), avf_read_packet(), avformat_find_stream_info(), avi_read_packet(), avi_write_packet(), avi_write_packet_internal(), avisynth_read_packet_audio(), avisynth_read_packet_video(), check_pkt(), compute_muxer_pkt_fields(), compute_pkt_fields(), concat_read_packet(), dash_write_packet(), davs2_decode_frame(), decode_frame(), decode_simple_internal(), do_subtitle_out(), drain_packet(), dvdvideo_read_packet(), eb_receive_packet(), enc_stats_write(), encode_frame(), ff_encode_encode_cb(), ff_interleave_add_packet(), ff_interleave_packet_per_dts(), ff_mov_add_hinted_packet(), ff_mov_generate_squashed_ttml_packet(), ff_mov_write_packet(), ff_mpv_encode_picture(), ff_qsv_encode(), ff_subtitles_queue_insert(), ff_subtitles_queue_read_packet(), ff_thread_decode_frame(), ff_v4l2_buffer_buf_to_avpkt(), ff_vaapi_encode_receive_packet(), ff_voc_get_packet(), ff_write_chained(), ffmmal_add_packet(), fifo_thread_write_packet(), fifo_write_packet(), fill_timing_for_id3_timestamped_stream(), film_read_packet(), finalize_packet(), flac_read_timestamp(), flush_packet(), flv_data_packet(), flv_read_packet(), flv_write_packet(), framecrc_write_packet(), g729_read_packet(), get_packet_defaults(), get_subtitle_pkt(), gxf_compare_field_nb(), gxf_interleave_packet(), gxf_packet(), gxf_write_media_preamble(), h264_queue_frame(), handle_avoid_negative_ts(), handle_klv(), handle_new_packet(), hds_write_packet(), hls_read_packet(), imf_read_packet(), initializations(), input_packet_process(), interleave_compare_dts(), ism_write_packet(), ist_dts_update(), libaribb24_decode(), libjxl_receive_frame(), libkvazaar_encode(), librav1e_receive_packet(), libuavs3d_decode_frame(), libx265_encode_frame(), libxevd_receive_frame(), libxeve_encode(), LLVMFuzzerTestOneInput(), log_packet(), lxf_read_packet(), main(), mediacodec_receive(), mf_sample_to_avpacket(), mkv_write_block(), mkv_write_packet(), mkv_write_packet_internal(), modplug_read_packet(), mov_create_chapter_track(), mov_create_timecode_track(), mov_finalize_packet(), mov_flush_fragment(), mov_read_packet(), mov_write_packet(), mov_write_single_packet(), mov_write_subtitle_end_packet(), mov_write_ttml_document_from_queue(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_get_dts(), mpegts_write_packet_internal(), msnwc_tcp_read_packet(), mux_fixup_ts(), mux_frames(), mux_log_debug_ts(), mxf_compare_timestamps(), mxf_interleave(), mxf_set_pts(), mxg_read_packet(), new_pes_packet(), next_duration(), noise(), nsv_read_chunk(), nut_write_packet(), nvenc_set_timestamp(), of_streamcopy(), ogg_read_packet(), omx_encode_frame(), packet_after_outpoint(), packet_decode(), parse_packet(), pkt_dump_internal(), prepare_input_packet(), prepare_packet(), pulse_write_frame(), pulse_write_packet(), r3d_read_reda(), r3d_read_redv(), rawvideo_read_packet(), read_frame_internal(), read_interval_packets(), read_packet(), read_thread(), report_new_stream(), rka_read_packet(), rtp_mpegts_write_packet(), scte_data_cb(), seek_frame_generic(), seg_write_packet(), send_to_mux(), ser_read_packet(), set_output_frame(), setts_filter(), show_packet(), showinfo_filter(), signal_init_ts(), storeframe(), sup_read_packet(), sup_write_packet(), trace_headers(), ts_discontinuity_detect(), ts_discontinuity_process(), ts_fixup(), tta_read_packet(), update_dts_from_pts(), update_initial_durations(), update_timestamps(), update_video_stats(), update_wrap_reference(), vaapi_encode_set_output_property(), video_decode_example(), decklink_input_callback::VideoInputFrameArrived(), vp9_decode_frame(), vtenc_cm_to_avpacket(), write_packet(), write_packet_common(), write_uncoded_frame_internal(), X264_frame(), xavs2_encode_frame(), XAVS_frame(), xcbgrab_read_packet(), xmv_fetch_audio_packet(), and xmv_fetch_video_packet().

◆ data

uint8_t* AVPacket::data
Examples
decode_audio.c, decode_video.c, encode_audio.c, encode_video.c, and vaapi_encode.c.

Definition at line 522 of file packet.h.

Referenced by a64multi_encode_frame(), aa_read_packet(), aac_adtstoasc_filter(), aac_decode_frame(), aac_encode_frame(), aac_parse_packet(), aasc_decode_frame(), ac3_decode_frame(), ac3_handle_packet(), ac4_write_packet(), adpcm_decode_frame(), adts_aac_read_packet(), adts_write_packet(), adx_decode_frame(), adx_encode_frame(), aic_decode_frame(), aiff_write_packet(), alac_decode_frame(), amf_copy_buffer(), amr_handle_packet(), amr_wb_encode_frame(), amrnb_decode_frame(), amrwb_decode_frame(), amv_init(), amv_write_packet_internal(), aom_decode(), apac_decode(), ape_decode_frame(), ape_read_packet(), append_au(), append_flv_data(), append_packet_chunked(), aptx_decode_frame(), aptx_encode_frame(), aribcaption_decode(), asf_deinterleave(), asf_parse_packet(), asf_read_header(), asf_read_multiple_payload(), asf_read_single_payload(), asf_write_packet(), ass_decode_frame(), ast_write_packet(), at_write_packet(), atrac1_decode_frame(), atrac3_decode_frame(), atrac3al_decode_frame(), atrac3p_decode_frame(), atrac9_decode_frame(), audio_read_packet(), audio_write_frame(), audio_write_packet(), aura_decode_frame(), av_get_packet(), av_grow_packet(), av_new_packet(), av_packet_from_data(), av_packet_make_refcounted(), av_packet_make_writable(), av_packet_ref(), av_shrink_packet(), av_write_frame(), avcodec_decode_subtitle2(), avcodec_default_get_encode_buffer(), avcodec_receive_packet(), avcodec_send_frame(), avcodec_send_packet(), avf_read_packet(), avi_read_packet(), avi_write_packet_internal(), avisynth_read_packet_audio(), avisynth_read_packet_video(), avs_decode_frame(), avs_read_video_packet(), avui_decode_frame(), avui_encode_frame(), bethsoftvid_decode_frame(), bfi_decode_frame(), binka_read_packet(), bitpacked_decode_uyvy422(), bitpacked_decode_yuv422p10(), bmp_decode_frame(), bmp_encode_frame(), bmv_aud_decode_frame(), bmv_read_packet(), bonk_decode(), caca_write_packet(), caf_write_packet(), callback(), cavs_decode_frame(), cdg_decode_frame(), cdtoons_decode_frame(), cdxl_decode_frame(), cdxl_read_packet(), cenc_filter(), cfhd_decode(), cfhd_encode_frame(), check_h26x_startcode(), check_sync_pes(), chomp_filter(), cin_read_packet(), cinaudio_decode_frame(), cinepak_decode_frame(), cinepak_encode_frame(), cinvideo_decode_frame(), cllc_decode_frame(), clv_decode_frame(), cmv_decode_frame(), cng_decode_frame(), cng_encode_frame(), compute_muxer_pkt_fields(), cook_decode_frame(), copy_cvpixelbuffer(), cpia_decode_frame(), crc_write_packet(), create_s337_payload(), create_subcc_packet(), cri_decode_frame(), cuvid_decode_packet(), cyuv_decode_frame(), dash_write_packet(), daud_write_packet(), davs2_decode_frame(), dc1394_read_packet(), dca_core_filter(), dcadec_decode_frame(), dds_decode(), decklink_write_audio_packet(), decklink_write_subtitle_packet(), decklink_write_video_packet(), decode(), decode_dlta(), decode_frame(), decode_frame_lscr(), decode_kfrm(), decode_move(), decode_packet(), decode_plane(), decode_simple_internal(), decode_tag(), decode_zlib(), decrypt_audio_frame(), decrypt_video_frame(), demux_audio(), demux_flush(), demux_video(), dfa_decode_frame(), dfa_read_packet(), dirac_decode_frame(), dnxhd_decode_frame(), dnxhd_encode_picture(), do_subtitle_out(), dolby_e_decode_frame(), dpcm_decode_frame(), drain_packet(), drop_dups(), dsd_channel(), dsf_read_packet(), dss_723_1_read_packet(), dss_sp_decode_frame(), dss_sp_read_packet(), dump_extradata(), dv_error_marker_filter(), dv_write_packet(), dvbsub_decode(), dvdsub_decode(), dvvideo_decode_frame(), dvvideo_encode_frame(), dxa_read_packet(), dxv_decode(), dxv_encode(), ea_read_packet(), eac3_core_filter(), eb_receive_packet(), ebml_writer_write_block(), eightsvx_decode_frame(), encode(), encode_apng(), encode_frame(), encode_make_refcounted(), encode_nals(), encode_picture_ls(), encode_png(), encode_receive_packet_internal(), encode_simple_receive_packet(), encode_superframe(), encode_write(), encode_yuv422p10(), escape124_decode_frame(), escape130_decode_frame(), evc_frame_merge_filter(), evrc_decode_frame(), extract_extradata_av1(), extract_extradata_h2645(), extract_extradata_mpeg12(), extract_extradata_mpeg4(), extract_extradata_vc1(), fastaudio_decode(), fbdev_read_packet(), fbdev_write_packet(), fdk_aac_decode_frame(), ff_ac3_encode_frame_common_end(), ff_add_attached_pic(), ff_alloc_packet(), ff_amf_receive_packet(), ff_cbs_read_packet(), ff_cbs_write_packet(), ff_encode_encode_cb(), ff_free_stream(), ff_get_encode_buffer(), ff_get_packet_palette(), ff_h263_decode_frame(), ff_h263_handle_packet(), ff_h264_handle_aggregated_packet(), ff_h264_handle_frag_packet(), ff_iamf_write_audio_frame(), ff_id3v2_parse_apic(), ff_id3v2_write_apic(), ff_img_read_packet(), ff_ivi_decode_frame(), ff_mediacodec_dec_send(), 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_reshuffle_raw_rgb(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ff_rtmp_packet_create(), ff_rtmp_packet_destroy(), ff_rtmp_packet_write(), ff_rtp_finalize_packet(), ff_rv34_decode_frame(), ff_spdif_read_packet(), ff_subtitles_queue_insert(), ff_twinvq_decode_frame(), ff_v4l2_buffer_avpkt_to_buf(), ff_v4l2_buffer_buf_to_avpkt(), ff_vp56_decode_frame(), ffat_create_decoder(), ffat_decode_callback(), ffat_encode(), ffmmal_add_packet(), ffmmal_receive_frame(), fic_decode_frame(), fifo_test_packet(), film_write_packet(), filter(), filter_1phase(), find_best_header_idx(), find_tracked_method(), fits_decode_frame(), fits_encode_frame(), fits_read_packet(), fits_write_packet(), flac_decode_frame(), flac_read_timestamp(), flac_write_audio_packet(), flac_write_picture(), flashsv2_encode_frame(), flashsv_decode_block(), flashsv_decode_frame(), flashsv_encode_frame(), flic_decode_frame(), flush_packet(), flv_check_bitstream(), flv_write_packet(), fourxm_read_packet(), frame_merge_filter(), framecrc_write_packet(), frm_read_packet(), fsb_read_packet(), ftr_decode_frame(), g2m_decode_frame(), g722_decode_frame(), g723_1_decode_frame(), g723_1_read_packet(), gdigrab_read_packet(), gdv_decode_frame(), gem_decode_frame(), gen_buffer_time(), gen_bytes_read(), gen_check_bw(), gen_connect(), gen_create_stream(), gen_delete_stream(), gen_fcpublish_stream(), gen_fcsubscribe_stream(), gen_fcunpublish_stream(), gen_get_stream_length(), gen_pause(), gen_play(), gen_pong(), gen_publish(), gen_release_stream(), gen_seek(), gen_swf_verification(), gen_window_ack_size(), genh_read_packet(), get_eia608_packet(), get_needed_flags(), get_subtitle_pkt(), decklink_frame::GetBytes(), gif_decode_frame(), gif_encode_frame(), gif_read_packet(), gif_write_packet(), grab_read_packet(), gsm_decode_frame(), gxf_write_media_preamble(), gxf_write_packet(), h261_decode_frame(), h264_decode_frame(), h264_handle_packet(), h264_mp4toannexb_filter(), h26x_prefix_aud(), handle_chunk_size(), handle_eac3(), handle_id3(), handle_invoke(), handle_invoke_error(), handle_invoke_status(), handle_klv(), handle_metadata(), handle_notify(), handle_set_peer_bw(), handle_user_control(), handle_window_ack_size(), hap_decode(), hap_encode(), hapqa_extract(), hcom_decode(), hdr_decode_frame(), hdr_encode_frame(), hevc_decode_frame(), hevc_handle_packet(), hevc_mp4toannexb_filter(), hls_read_packet(), hnm_decode_frame(), hq_hqa_decode_frame(), hqx_decode_frame(), ico_write_packet(), id3_has_changed_values(), idcin_decode_frame(), iec61883_parse_queue_dv(), iff_read_packet(), ilbc_decode_frame(), ilbc_encode_frame(), image_available(), imc_decode_frame(), imm5_decode_frame(), imx_decode_frame(), imx_dump_header(), initializations(), ipu_decode_frame(), ipvideo_decode_frame(), ir2_decode_frame(), is_animated_webp_packet(), is_image(), ivf_write_packet(), jacosub_decode_frame(), jacosub_read_header(), jpeg2000_decode_frame(), jpegxl_anim_read_packet(), kmsgrab_read_packet(), laf_read_packet(), lag_decode_frame(), latm_check_bitstream(), latm_decode_frame(), latm_parse_packet(), latm_write_packet(), lavfi_read_packet(), lead_decode_frame(), libaribb24_decode(), libcelt_dec_decode(), libcodec2_decode(), libcodec2_encode(), libdav1d_receive_frame(), libdav1d_receive_frame_internal(), libgsm_decode_frame(), libgsm_encode_frame(), libjxl_encode_frame(), libjxl_receive_frame(), libkvazaar_encode(), libopus_decode(), libopus_encode(), librav1e_receive_packet(), librsvg_decode_frame(), libshine_encode_frame(), libspeex_decode_frame(), libuavs3d_decode_frame(), libvorbis_encode_frame(), libwebp_anim_encode_frame(), libwebp_encode_frame(), libx265_encode_frame(), libxevd_receive_frame(), libxeve_encode(), ljpeg_encode_frame(), LLVMFuzzerTestOneInput(), load_ipmovie_packet(), lrc_write_packet(), lxf_read_packet(), m101_decode_frame(), mace_decode_frame(), magy_decode_frame(), magy_encode_frame(), main(), mediacodec_receive(), mf_sample_to_avpacket(), microdvd_decode_frame(), microdvd_write_packet(), mimic_decode_frame(), misc4_decode(), mjpeg2jpeg_filter(), mjpega_dump_header(), mjpegb_decode_frame(), mkv_check_bitstream(), mkv_reformat_av1(), mlp_encode_frame(), mm_decode_frame(), mmap_read_frame(), mobiclip_decode(), modplug_read_packet(), moflex_read_packet(), mov2textsub(), mov_build_iamf_packet(), mov_check_bitstream(), mov_create_chapter_track(), mov_create_timecode_track(), mov_parse_mpeg2_frame(), mov_parse_truehd_frame(), mov_parse_vc1_frame(), mov_read_chapters(), mov_read_covr(), mov_read_packet(), mov_text_decode_frame(), mov_write_covr(), mov_write_packet(), mov_write_subtitle_end_packet(), mp3_write_audio_packet(), mp3lame_encode_frame(), mp_decode_frame(), MPA_encode_frame(), mpa_robust_parse_packet(), mpc7_decode_frame(), mpc8_decode_frame(), mpc_read_packet(), mpeg4_unpack_bframes_filter(), mpeg_decode_frame(), mpeg_mux_write_packet(), mpeg_parse_packet(), mpegts_check_bitstream(), mpegts_raw_read_packet(), mpegts_write_packet_internal(), mpjpeg_read_packet(), mpjpeg_write_packet(), mpl2_decode_frame(), msp2_decode_frame(), msp_read_packet(), msrle_decode_frame(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_frame(), msvideo1_decode_frame(), mux_frames(), mvc_decode_frame(), mxf_check_bitstream(), mxf_decrypt_triplet(), mxf_get_d10_aes3_packet(), mxf_parse_dnxhd_frame(), mxf_parse_dv_frame(), mxf_parse_ffv1_frame(), mxf_parse_h264_frame(), mxf_parse_jpeg2000_frame(), mxf_parse_mpeg2_frame(), mxf_write_d10_audio_packet(), mxf_write_opatom_packet(), mxf_write_packet(), mxg_read_packet(), mxpeg_decode_frame(), new_data_packet(), new_pes_packet(), noise(), nsv_read_chunk(), nsv_read_close(), nsv_read_header(), nsv_read_packet(), nut_write_packet(), nuv_packet(), ogg_read_packet(), ogg_write_packet_internal(), oggvorbis_decode_frame(), on2avc_decode_frame(), opengl_get_plane_pointer(), opengl_write_packet(), opus_decode_packet(), opus_get_packet_samples(), opus_packet_assembler(), pack_bitstream(), paf_audio_decode(), paf_video_decode(), pam_encode_frame(), parse_packet(), pcm_bluray_decode_frame(), pcm_bluray_encode_frame(), pcm_decode_frame(), pcm_dvd_decode_frame(), pcm_dvd_encode_frame(), pcm_encode_frame(), pcx_decode_frame(), pcx_encode_frame(), photocd_decode_frame(), pix_decode_frame(), pixlet_decode_frame(), pkt_dump_internal(), pnm_decode_frame(), pnm_encode_frame(), pp_bnk_read_packet(), prepare_input_packet(), prepare_packet(), probe_codec(), process_callback(), process_output_surface(), prores_encode_frame(), prores_metadata(), ptx_decode_frame(), pulse_read_packet(), pulse_write_frame(), pulse_write_packet(), qcelp_decode_frame(), qdm2_decode_frame(), qdm2_restore_block(), qdmc_decode_frame(), qoa_decode_frame(), qoa_read_packet(), qoi_decode_frame(), qoi_encode_frame(), qsv_decode(), qsv_decode_header(), qt_rtp_close(), qt_rtp_parse_packet(), qtrle_decode_frame(), qtrle_encode_frame(), queue_frames(), ra144_decode_frame(), ra144_encode_frame(), ra288_decode_frame(), raw_encode(), rcwt_write_packet(), read_access_unit(), read_connect(), read_frame(), read_gab2_sub(), read_number_result(), read_packet(), read_packet_gme(), read_packet_openmpt(), read_packet_vs(), realtext_decode_frame(), recode_subtitle(), remove_extradata(), return_stored_frame(), rka_decode_frame(), rkmpp_send_packet(), 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(), rpza_encode_frame(), rscc_decode_frame(), rsd_read_packet(), rtmp_send_packet(), rtp_mpegts_write_packet(), rtp_parse_packet_internal(), rtp_write_packet(), rv10_decode_frame(), s302m_decode_frame(), s302m_encode2_frame(), s337m_read_packet(), sami_decode_frame(), sbc_decode_frame(), sbc_pack_frame(), scc_write_packet(), sch_dec_receive(), screenpresso_decode_frame(), sdl2_write_packet(), sdr2_read_packet(), sds_read_packet(), send_invoke_response(), seq_read_packet(), seqvideo_decode_frame(), sga_audio_packet(), sga_decode_frame(), sga_video_packet(), sgirle_decode_frame(), shorten_decode_frame(), show_packet(), siff_read_packet(), sipr_decode_frame(), siren_decode(), smacker_read_packet(), smc_decode_frame(), smc_encode_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(), speedhq_decode_frame(), speex_decode_frame(), srt_decode_frame(), srt_write_packet(), store_packet(), storeframe(), str_read_close(), str_read_packet(), subviewer_decode_frame(), sunrast_decode_frame(), sunrast_encode_frame(), sup_read_packet(), sup_write_packet(), svc_decode_frame(), svc_encode_frame(), svq1_decode_frame(), svq1_encode_frame(), svq3_decode_frame(), swf_read_packet(), swf_write_packet(), tak_decode_frame(), targa_encode_frame(), tdsc_decode_frame(), teletext_decode_frame(), text2movsub(), text_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), thp_read_packet(), tmv_decode_frame(), tqi_decode_frame(), truehd_core_filter(), truemotion1_decode_frame(), truemotion2rt_decode_frame(), truemotion2rt_decode_header(), truespeech_decode_frame(), try_decode_frame(), tscc2_decode_frame(), tta_decode_frame(), tta_encode_frame(), tta_queue_flush(), ttml_write_packet(), twolame_encode_frame(), txd_decode_frame(), ulti_decode_frame(), utvideo_encode_frame(), v308_decode_frame(), v308_encode_frame(), v408_decode_frame(), v408_encode_frame(), v410_decode_frame(), v410_encode_frame(), vaapi_encode_get_coded_data(), vble_decode_frame(), vbn_decode_frame(), vbn_encode(), vc1_decode_frame(), vc1test_write_packet(), vc2hq_handle_frame_fragment(), vc2hq_handle_sequence_header(), vc2hq_mark_end_of_sequence(), vcr1_decode_frame(), decklink_input_callback::VideoInputFrameArrived(), videostream_cb(), viv_read_packet(), vmd_read_packet(), vmdaudio_decode_frame(), vmdvideo_decode_frame(), voc_write_packet(), vorbis_decode_frame(), vorbis_encode_frame(), vp3_decode_frame(), vp78_decode_frame(), vp9_decode_frame(), vp9_raw_reorder_filter(), vp9_superframe_filter(), vp9_superframe_split_filter(), vpk_read_packet(), vpx_decode(), vqa_decode_frame(), vqc_decode_frame(), vqf_read_packet(), vtenc_cm_to_avpacket(), vvc_mp4toannexb_filter(), wavarc_decode(), wavpack_decode_frame(), wavpack_encode_frame(), wbmp_decode_frame(), wbmp_encode_frame(), webm_reformat_vtt(), webp_decode_frame(), webp_write_packet(), webvtt_decode_frame(), webvtt_write_packet(), wma_decode_superframe(), wmavoice_decode_packet(), wrapped_avframe_decode(), wrapped_avframe_encode(), write_frame(), write_packet(), write_packet_pipe(), write_table_entries_attrib(), write_uncoded_frame_internal(), ws_snd_decode_frame(), wsaud_read_packet(), wsaud_write_packet(), wsvqa_read_packet(), wv_read_packet(), wv_write_packet(), xan_decode_frame(), xavs2_encode_frame(), XAVS_frame(), xbm_decode_frame(), xbm_encode_frame(), xcbgrab_frame(), xface_decode_frame(), xface_encode_frame(), xiph_handle_packet(), xmv_fetch_video_packet(), xpm_decode_frame(), 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(), yuv4_write_packet(), zero12v_decode_frame(), and zerocodec_decode_frame().

◆ size

int AVPacket::size
Examples
decode_audio.c, decode_video.c, encode_audio.c, encode_video.c, and vaapi_encode.c.

Definition at line 523 of file packet.h.

Referenced by a64multi_encode_frame(), aa_read_packet(), aac_adtstoasc_filter(), aac_decode_frame(), aac_encode_frame(), aasc_decode_frame(), ac3_decode_frame(), ac4_write_packet(), adpcm_decode_frame(), adts_aac_read_packet(), adts_write_packet(), adx_decode_frame(), adx_encode_frame(), 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(), amv_write_packet_internal(), android_camera_read_packet(), aom_decode(), apac_decode(), ape_decode_frame(), ape_read_packet(), append_au(), append_flv_data(), append_packet_chunked(), aptx_decode_frame(), aribcaption_decode(), asf_parse_packet(), asf_read_header(), asf_read_pts(), asf_read_timestamp(), asf_write_packet(), ass_decode_frame(), ast_write_packet(), at_write_packet(), atrac1_decode_frame(), atrac3_decode_frame(), atrac3al_decode_frame(), atrac3p_decode_frame(), atrac9_decode_frame(), attachment_value_size(), audio_read_packet(), audio_write_frame(), audio_write_packet(), aura_decode_frame(), av_append_packet(), av_get_packet(), av_grow_packet(), av_new_packet(), av_packet_from_data(), av_packet_make_refcounted(), av_packet_make_writable(), av_packet_ref(), av_shrink_packet(), av_write_frame(), avcodec_decode_subtitle2(), avcodec_default_get_encode_buffer(), avcodec_send_packet(), avf_read_packet(), avformat_find_stream_info(), avi_read_packet(), avi_write_packet(), avi_write_packet_internal(), avisynth_read_packet_audio(), avisynth_read_packet_video(), avs_decode_frame(), avs_read_video_packet(), avui_decode_frame(), bethsoftvid_decode_frame(), bfi_decode_frame(), bitpacked_decode(), bitpacked_decode_yuv422p10(), bmp_decode_frame(), bmv_aud_decode_frame(), bmv_read_packet(), bonk_decode(), caf_write_packet(), cavs_decode_frame(), cdg_decode_frame(), cdtoons_decode_frame(), cdxl_decode_frame(), cenc_filter(), cfhd_decode(), cfhd_encode_frame(), check_h26x_startcode(), check_sync_pes(), chomp_filter(), cinaudio_decode_frame(), cinepak_decode_frame(), cinepak_encode_frame(), cinvideo_decode_frame(), cllc_decode_frame(), clv_decode_frame(), cmv_decode_frame(), cng_decode_frame(), cng_encode_frame(), compute_frame_duration(), compute_muxer_pkt_fields(), compute_pkt_fields(), cook_decode_frame(), copy_cvpixelbuffer(), cpia_decode_frame(), crc_write_packet(), create_s337_payload(), cri_decode_frame(), cuvid_decode_packet(), cyuv_decode_frame(), dash_write_packet(), daud_write_packet(), davs2_decode_frame(), dc1394_read_packet(), dca_core_filter(), dcadec_decode_frame(), dds_decode(), decklink_write_audio_packet(), decklink_write_subtitle_packet(), decode(), decode_frame(), decode_frame_lscr(), decode_packet(), decode_simple_internal(), decode_tag(), decrypt_audio_frame(), decrypt_video_frame(), demux_audio(), demux_video(), dfa_decode_frame(), dfa_read_packet(), dirac_decode_frame(), dng_decode_tiles(), dnxhd_decode_frame(), do_subtitle_out(), dolby_e_decode_frame(), dpcm_decode_frame(), drain_packet(), dshow_read_packet(), dss_sp_decode_frame(), dump_extradata(), dv_error_marker_filter(), dv_write_packet(), dvbsub_decode(), dvdsub_decode(), dvvideo_decode_frame(), dvvideo_encode_frame(), dxv_decode(), dxv_encode(), ea_read_packet(), eac3_core_filter(), eb_receive_packet(), ebml_writer_block_len(), ebml_writer_write_block(), eightsvx_decode_frame(), enc_stats_write(), encode(), encode_frame(), encode_make_refcounted(), encode_picture_ls(), encode_png(), encode_superframe(), encode_write(), escape124_decode_frame(), escape130_decode_frame(), estimate_timings_from_pts(), evc_frame_merge_filter(), evrc_decode_frame(), extract_extradata_av1(), extract_extradata_h2645(), extract_extradata_mpeg12(), extract_extradata_mpeg4(), extract_extradata_vc1(), extract_packet_props(), fastaudio_decode(), fdk_aac_decode_frame(), ff_add_attached_pic(), ff_alloc_packet(), ff_cbs_read_packet(), ff_cbs_write_packet(), ff_decklink_packet_queue_get(), ff_decklink_packet_queue_put(), ff_decode_frame_props_from_pkt(), ff_get_encode_buffer(), ff_get_packet_palette(), ff_h263_decode_frame(), ff_iamf_write_audio_frame(), ff_id3v2_write_apic(), ff_img_read_packet(), ff_interleave_add_packet(), ff_ivi_decode_frame(), ff_mediacodec_dec_send(), ff_mjpeg_decode_frame(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_mpv_encode_picture(), ff_qsv_encode(), ff_raw_write_packet(), ff_read_packet(), ff_reshuffle_raw_rgb(), ff_rtmp_packet_create(), ff_rtmp_packet_destroy(), ff_rtmp_packet_write(), 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_v4l2_buffer_avpkt_to_buf(), ff_v4l2_buffer_buf_to_avpkt(), ff_v4l2_context_enqueue_packet(), ff_vaapi_encode_receive_packet(), ff_vp56_decode_frame(), ffat_create_decoder(), ffat_decode(), ffat_decode_callback(), ffat_encode(), ffmmal_add_packet(), ffmmal_receive_frame(), fic_decode_frame(), film_write_packet(), filter(), filter_1phase(), find_best_header_idx(), find_tracked_method(), fits_decode_frame(), fits_read_packet(), fits_write_packet(), flac_decode_frame(), flac_read_timestamp(), flac_write_audio_packet(), flac_write_picture(), flashsv2_encode_frame(), flashsv_decode_frame(), flashsv_encode_frame(), flic_decode_frame(), flush_packet(), flv_check_bitstream(), flv_data_packet(), flv_write_packet(), frame_merge_filter(), framecrc_write_packet(), frm_read_packet(), fsb_read_packet(), ftr_decode_frame(), g2m_decode_frame(), g722_decode_frame(), g723_1_decode_frame(), g723_1_read_packet(), gdv_decode_frame(), gem_decode_frame(), gen_connect(), get_needed_flags(), gif_decode_frame(), gif_encode_frame(), gif_write_packet(), gsm_decode_frame(), guess_pkt_duration(), gxf_write_media_preamble(), gxf_write_packet(), h261_decode_frame(), h264_decode_frame(), h264_mp4toannexb_filter(), h26x_prefix_aud(), handle_chunk_size(), handle_eac3(), handle_id3(), handle_invoke(), handle_invoke_error(), handle_invoke_status(), handle_klv(), handle_metadata(), handle_new_packet(), handle_notify(), handle_set_peer_bw(), handle_user_control(), handle_window_ack_size(), hap_decode(), hap_encode(), hapqa_extract(), hcom_decode(), hdr_decode_frame(), hevc_decode_frame(), hevc_mp4toannexb_filter(), hls_write_packet(), hnm_decode_frame(), hq_hqa_decode_frame(), hqx_decode_frame(), iamf_write_packet(), ico_write_packet(), id3_has_changed_values(), idcin_decode_frame(), iec61883_parse_queue_dv(), iff_read_packet(), ilbc_decode_frame(), ilbc_encode_frame(), imc_decode_frame(), imm5_decode_frame(), imx_decode_frame(), imx_dump_header(), initializations(), input_packet_process(), ipu_decode_frame(), ipvideo_decode_frame(), ir2_decode_frame(), is_animated_webp_packet(), is_image(), ivf_write_packet(), jacosub_decode_frame(), jpeg2000_decode_frame(), jpegxl_anim_read_packet(), kmsgrab_read_packet(), lag_decode_frame(), latm_check_bitstream(), latm_decode_frame(), latm_write_packet(), lavfi_read_packet(), lead_decode_frame(), libaribb24_decode(), libcelt_dec_decode(), libcodec2_decode(), libdav1d_receive_frame_internal(), libgsm_decode_frame(), libjxl_receive_frame(), libopus_decode(), libopus_encode(), librsvg_decode_frame(), libspeex_decode_frame(), libuavs3d_decode_frame(), libvorbis_encode_frame(), libwebp_anim_encode_frame(), libwebp_encode_frame(), libxevd_receive_frame(), ljpeg_encode_frame(), LLVMFuzzerTestOneInput(), lrc_write_packet(), m101_decode_frame(), mace_decode_frame(), magy_decode_frame(), magy_encode_frame(), main(), merge_superframe(), microdvd_decode_frame(), microdvd_write_packet(), mimic_decode_frame(), misc4_decode(), mjpeg2jpeg_filter(), mjpega_dump_header(), mjpegb_decode_frame(), mkv_check_bitstream(), mkv_reformat_av1(), mkv_write_block(), mkv_write_packet(), mkv_write_trailer(), mlp_encode_frame(), mm_decode_frame(), mmap_read_frame(), mobiclip_decode(), modplug_read_packet(), mov2textsub(), mov_build_iamf_packet(), mov_check_bitstream(), mov_create_chapter_track(), mov_create_timecode_track(), mov_parse_mpeg2_frame(), mov_parse_truehd_frame(), mov_parse_vc1_frame(), mov_read_covr(), mov_read_packet(), mov_text_decode_frame(), mov_write_covr(), mov_write_packet(), mov_write_single_packet(), mov_write_subtitle_end_packet(), mp3_write_audio_packet(), mp3_xing_add_frame(), mp_decode_frame(), MPA_encode_frame(), mpc7_decode_frame(), mpc8_decode_frame(), mpc_read_packet(), mpeg4_unpack_bframes_filter(), mpeg_decode_frame(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_check_bitstream(), mpegts_read_packet(), mpegts_write_packet_internal(), mpjpeg_read_packet(), mpjpeg_write_packet(), mpl2_decode_frame(), msp2_decode_frame(), msp_read_packet(), msrle_decode_frame(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_frame(), msvideo1_decode_frame(), mux_fixup_ts(), mux_frames(), mux_log_debug_ts(), mux_queue_packet(), mvc_decode_frame(), mxf_check_bitstream(), mxf_parse_dnxhd_frame(), mxf_parse_dv_frame(), mxf_parse_ffv1_frame(), mxf_parse_h264_frame(), mxf_parse_jpeg2000_frame(), mxf_parse_mpeg2_frame(), mxf_parse_prores_frame(), mxf_set_audio_pts(), mxf_write_d10_audio_packet(), mxf_write_opatom_packet(), mxf_write_packet(), mxg_read_packet(), mxpeg_decode_frame(), new_data_packet(), new_pes_packet(), noise(), nut_write_packet(), ogg_write_packet(), ogg_write_packet_internal(), oggvorbis_decode_frame(), on2avc_decode_frame(), opus_decode_packet(), opus_get_packet_samples(), opus_packet_assembler(), pack_bitstream(), packet_decode(), packet_queue_get(), packet_queue_put_private(), paf_audio_decode(), paf_video_decode(), parse_packet(), pcm_bluray_decode_frame(), pcm_bluray_encode_frame(), pcm_decode_frame(), pcm_dvd_decode_frame(), pcm_dvd_encode_frame(), pcx_decode_frame(), pcx_encode_frame(), photocd_decode_frame(), pix_decode_frame(), pixlet_decode_frame(), pkt_dump_internal(), pnm_decode_frame(), pnm_encode_frame(), probe_codec(), prores_encode_frame(), prores_metadata(), ptx_decode_frame(), pulse_read_packet(), pulse_write_frame(), pulse_write_packet(), qcelp_decode_frame(), qdm2_decode_frame(), qdm2_restore_block(), qdmc_decode_frame(), qoa_decode_frame(), qoi_decode_frame(), qoi_encode_frame(), qsv_decode(), qsv_decode_frame(), qsv_decode_header(), qsv_process_data(), qt_rtp_parse_packet(), qtrle_decode_frame(), qtrle_encode_frame(), ra144_decode_frame(), ra144_encode_frame(), ra288_decode_frame(), raw_encode(), rcwt_write_packet(), read_access_unit(), read_connect(), read_frame_internal(), read_gab2_sub(), read_interval_packets(), read_number_result(), read_packet(), read_packet_openmpt(), read_packet_vs(), realtext_decode_frame(), rechunk_filter(), recode_subtitle(), remove_extradata(), rka_decode_frame(), rkmpp_send_packet(), rl2_decode_frame(), rm_ac3_swap_bytes(), rm_write_packet(), roq_decode_frame(), roq_encode_frame(), rpza_decode_frame(), rpza_encode_frame(), rscc_decode_frame(), rsd_read_packet(), rtmp_send_packet(), rtp_mpegts_write_packet(), rtp_write_packet(), rv10_decode_frame(), s302m_decode_frame(), s337m_read_packet(), sami_decode_frame(), sbc_decode_frame(), sbc_pack_frame(), scc_write_packet(), screenpresso_decode_frame(), send_invoke_response(), seqvideo_decode_frame(), set_output_frame(), sga_audio_packet(), sga_decode_frame(), sga_video_packet(), sgirle_decode_frame(), shorten_decode_frame(), show_packet(), showinfo_filter(), siff_read_packet(), sipr_decode_frame(), siren_decode(), smc_decode_frame(), smc_encode_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(), speedhq_decode_frame(), speex_decode_frame(), srt_decode_frame(), srt_write_packet(), stats(), storeframe(), str_read_packet(), submit_packet(), subviewer_decode_frame(), sunrast_decode_frame(), sunrast_encode_frame(), sup_read_packet(), sup_write_packet(), svc_decode_frame(), svq1_decode_frame(), svq1_encode_frame(), svq3_decode_frame(), swf_read_packet(), swf_write_packet(), tak_decode_frame(), targa_encode_frame(), tdsc_decode_frame(), teletext_decode_frame(), text2movsub(), text_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), tmv_decode_frame(), tqi_decode_frame(), trace_headers(), truehd_core_filter(), truemotion1_decode_frame(), truemotion2rt_decode_frame(), truemotion2rt_decode_header(), truespeech_decode_frame(), try_decode_frame(), tscc2_decode_frame(), tta_decode_frame(), tta_encode_frame(), tta_queue_flush(), tta_write_packet(), ttml_write_packet(), twolame_encode_frame(), txd_decode_frame(), ulti_decode_frame(), update_video_stats(), utvideo_encode_frame(), v308_decode_frame(), v408_decode_frame(), v410_decode_frame(), v4l2_read_packet(), vble_decode_frame(), vbn_decode_frame(), vc1_decode_frame(), vc1t_read_packet(), vc1test_write_packet(), vcr1_decode_frame(), vfw_read_packet(), decklink_input_callback::VideoInputFrameArrived(), vmdaudio_decode_frame(), vmdvideo_decode_frame(), voc_write_packet(), vorbis_decode_frame(), vorbis_encode_frame(), vp3_decode_frame(), vp78_decode_frame(), vp9_decode_frame(), vp9_raw_reorder_filter(), vp9_superframe_filter(), vp9_superframe_split_filter(), vpx_decode(), vqa_decode_frame(), vqc_decode_frame(), vtenc_cm_to_avpacket(), vvc_decode_frame(), vvc_mp4toannexb_filter(), wavarc_decode(), wavpack_decode_frame(), wavpack_encode_frame(), wbmp_decode_frame(), wc3_read_packet(), webm_reformat_vtt(), webp_decode_frame(), webp_write_packet(), webvtt_decode_frame(), webvtt_write_packet(), wma_decode_superframe(), wmavoice_decode_packet(), wrapped_avframe_decode(), wrapped_avframe_encode(), write_frame(), write_packet(), write_packet_common(), write_packet_pipe(), write_table_entries_attrib(), write_table_redirector_legacy_attrib(), write_uncoded_frame_internal(), ws_snd_decode_frame(), wsaud_write_packet(), wv_read_packet(), wv_write_packet(), xan_decode_frame(), xbm_decode_frame(), xbm_encode_frame(), xcbgrab_frame(), xface_decode_frame(), xma_decode_packet(), xpm_decode_frame(), xvid_encode_frame(), xvid_strip_vol_header(), xwd_decode_frame(), y216_decode_frame(), y41p_decode_frame(), yop_decode_frame(), yuv4_decode_frame(), yuv4_write_packet(), zero12v_decode_frame(), and zerocodec_decode_frame().

◆ stream_index

int AVPacket::stream_index
Examples
demux_decode.c, extract_mvs.c, mux.c, qsv_decode.c, qsv_transcode.c, remux.c, transcode.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 524 of file packet.h.

Referenced by aac_parse_packet(), aal_read_packet(), aax_read_packet(), ac3_handle_packet(), ac4_read_packet(), activate(), adp_read_packet(), ads_read_packet(), adx_read_packet(), afc_read_packet(), aiff_read_packet(), aiff_write_packet(), aix_read_packet(), amr_handle_packet(), amv_init(), amv_pad(), amv_write_packet(), amv_write_packet_internal(), apc_read_packet(), ape_read_packet(), argo_brp_read_packet(), asf_parse_packet(), asf_read_packet(), asf_read_payload(), asf_read_pts(), asf_read_subpayload(), asf_read_timestamp(), asf_write_packet(), asfrtp_parse_packet(), ast_read_packet(), audio_frame_obu(), av_packet_copy_props(), av_read_frame(), avf_read_packet(), avformat_find_stream_info(), avi_read_packet(), avi_write_packet(), avi_write_packet_internal(), avisynth_read_packet_audio(), avisynth_read_packet_video(), avs_read_audio_packet(), avs_read_video_packet(), bfi_read_packet(), binka_read_packet(), bmv_read_packet(), callback(), cdxl_read_packet(), check_packet(), cin_read_packet(), cine_read_packet(), compute_crc_of_packets(), compute_muxer_pkt_fields(), compute_pkt_fields(), concat_read_packet(), create_subcc_packet(), dash_parse_prft(), dash_read_packet(), dash_write_packet(), dat_read_packet(), daud_packet(), dc1394_read_packet(), decklink_write_audio_packet(), decklink_write_video_packet(), decode_frame(), decode_simple_internal(), demux_audio(), demux_video(), dhav_read_packet(), do_send(), drop_dups(), dsf_read_packet(), dshow_read_packet(), dss_723_1_read_packet(), dss_sp_read_packet(), dv_write_packet(), dvdvideo_read_packet(), dxa_read_packet(), ea_read_packet(), ebml_writer_block_len(), eit_cb(), encode_write(), encode_write_frame(), estimate_timings_from_pts(), extract_packet_props(), ff_add_attached_pic(), ff_decklink_write_packet(), ff_decode_frame_props(), ff_h263_handle_packet(), ff_id3v2_write_apic(), ff_img_read_packet(), ff_interleave_add_packet(), ff_interleave_packet_per_dts(), ff_interleaved_peek(), 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(), fifo_thread_attempt_recovery(), fifo_thread_write_packet(), fill_timing_for_id3_timestamped_stream(), film_read_packet(), film_write_packet(), fits_read_packet(), flac_write_packet(), flac_write_picture(), flv_data_packet(), flv_read_packet(), flv_write_packet(), fourxm_read_packet(), framecrc_write_packet(), frm_read_packet(), fsb_read_packet(), g723_1_read_packet(), g729_read_packet(), gdv_read_packet(), genh_read_packet(), get_needed_flags(), get_subtitle_pkt(), get_timebase(), gif_read_packet(), gsm_read_packet(), guess_pkt_duration(), gxf_compare_field_nb(), gxf_interleave_packet(), gxf_packet(), gxf_write_media_preamble(), gxf_write_packet(), h264_handle_packet(), handle_avoid_negative_ts(), handle_klv(), handle_new_packet(), hds_write_packet(), hevc_handle_packet(), hls_read_packet(), hls_write_packet(), iamf_write_packet(), ico_write_packet(), idcin_read_packet(), iff_read_packet(), ifv_read_packet(), ilbc_read_packet(), image_available(), imf_read_packet(), ingenient_read_packet(), input_packet_process(), input_thread(), interleave_compare_dts(), ism_write_packet(), iss_read_packet(), ivr_read_packet(), laf_read_packet(), latm_parse_packet(), lavfi_read_packet(), lmlm4_read_packet(), load_ipmovie_packet(), log_packet(), lvf_read_packet(), lxf_read_packet(), main(), mkv_check_new_extra_data(), mkv_write_packet(), mkv_write_packet_internal(), mmf_read_packet(), modplug_read_packet(), mods_read_packet(), moflex_read_packet(), mov_build_iamf_packet(), mov_create_chapter_track(), mov_create_timecode_track(), mov_finalize_packet(), mov_write_packet(), mov_write_single_packet(), mov_write_squashed_packet(), mov_write_subtitle_end_packet(), mov_write_ttml_document_from_queue(), mp3_read_packet(), mp3_write_packet(), mpa_robust_parse_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(), msp_read_packet(), mtv_read_packet(), mux_frames(), muxer_thread(), mv_read_packet(), mxf_compare_timestamps(), mxf_decrypt_triplet(), mxf_interleave(), mxf_interleave_get_packet(), mxf_read_packet(), mxf_set_audio_pts(), mxf_write_packet(), mxg_read_packet(), nc_read_packet(), new_pes_packet(), next_duration(), noise(), nsv_read_chunk(), nut_write_packet(), nuv_packet(), ogg_read_packet(), ogg_write_packet_internal(), packet_after_outpoint(), packet_queue_put_nullpacket(), parse_chunk(), parse_packet(), pdv_read_packet(), pkt_dump_internal(), pmp_packet(), pp_bnk_read_packet(), process_frame(), pva_read_packet(), qdm2_restore_block(), qoa_read_packet(), qt_rtp_parse_packet(), r3d_read_reda(), r3d_read_redv(), raw_read_packet(), rawvideo_read_packet(), rdt_parse_packet(), read_dst_frame(), read_frame(), read_frame_internal(), read_interval_packets(), read_packet(), read_thread(), redspark_read_packet(), report_new_stream(), return_stored_frame(), rfc4175_finalize_packet(), rl2_read_packet(), rm_write_packet(), roq_read_packet(), rpl_read_packet(), rsd_read_packet(), rtp_mpegts_write_packet(), rtp_parse_packet_internal(), rtp_write_packet(), rtsp_write_packet(), sap_write_packet(), scd_read_packet(), sch_demux_send(), sch_mux_receive(), scte_data_cb(), sdns_read_packet(), sdr2_read_packet(), sds_read_packet(), seek_frame_generic(), seg_write_packet(), seq_read_packet(), ser_read_packet(), sga_audio_packet(), sga_video_packet(), show_packet(), siff_read_packet(), signal_init_ts(), simbiosis_imx_read_packet(), smacker_read_packet(), smjpeg_read_packet(), smjpeg_write_packet(), smush_read_packet(), sol_read_packet(), store_packet(), str_read_packet(), sup_read_packet(), svs_read_packet(), swf_read_packet(), swf_write_packet(), tee_write_packet(), thp_read_packet(), threedostr_read_packet(), tmv_read_packet(), ts_discontinuity_detect(), ts_fixup(), txd_read_packet(), update_dts_from_pts(), update_initial_durations(), update_timestamps(), vc2hq_handle_sequence_header(), vc2hq_mark_end_of_sequence(), vid_read_packet(), video_decode(), video_decode_example(), decklink_input_callback::VideoInputFrameArrived(), viv_read_packet(), vivo_read_packet(), vmd_read_packet(), vpk_read_packet(), vqf_read_packet(), wavarc_read_packet(), wc3_read_packet(), webm_chunk_write_packet(), write_frame(), write_muxed_file(), write_packet(), write_packets_common(), write_skip_frames(), write_table_entries_attrib(), write_table_redirector_legacy_attrib(), write_timestamp(), write_uncoded_frame_internal(), 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(), yuv4_read_packet(), and yuv4_write_packet().

◆ flags

int AVPacket::flags

A combination of AV_PKT_FLAG values.

Definition at line 528 of file packet.h.

Referenced by aal_read_packet(), adx_read_packet(), aiff_read_packet(), amf_copy_buffer(), apng_read_packet(), append_packet_chunked(), aptx_hd_read_packet(), aptx_read_packet(), asf_parse_packet(), asf_read_multiple_payload(), asf_read_packet(), asf_read_payload(), asf_read_pts(), asf_read_timestamp(), asf_write_packet(), av_packet_copy_props(), av_read_frame(), avf_read_packet(), avi_read_packet(), avi_write_packet_internal(), avs_read_audio_packet(), avs_read_video_packet(), cdxl_read_packet(), cfhd_encode_frame(), cine_read_packet(), cinepak_encode_frame(), compute_muxer_pkt_fields(), compute_pkt_fields(), dash_write_packet(), dat_read_packet(), dc1394_read_packet(), decode_frame(), decode_frame_common(), dhav_read_packet(), dump_extradata(), dvdvideo_read_packet(), ea_read_packet(), eb_receive_packet(), enc_stats_write(), encode_frame(), encode_png(), encode_receive_packet_internal(), ff_add_attached_pic(), ff_decode_frame_props_from_pkt(), ff_img_read_packet(), ff_interleave_add_packet(), ff_mov_add_hinted_packet(), ff_mov_generate_squashed_ttml_packet(), ff_mov_write_packet(), ff_mpv_encode_picture(), ff_pcm_read_packet(), ff_qsv_encode(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ff_subtitles_queue_insert(), ff_v4l2_buffer_avpkt_to_buf(), ff_v4l2_buffer_buf_to_avpkt(), fifo_thread_write_packet(), film_read_packet(), film_write_packet(), fits_encode_frame(), fits_read_packet(), flashsv2_encode_frame(), flashsv_decode_frame(), flashsv_encode_frame(), flv_data_packet(), flv_read_packet(), flv_write_packet(), frame_merge_filter(), framecrc_write_packet(), gdv_read_packet(), get_needed_flags(), gif_encode_frame(), h263_handle_packet(), h264_metadata_update_fragment(), handle_klv(), handle_new_packet(), hdr_encode_frame(), hds_write_packet(), hls_read_packet(), hls_write_packet(), idcin_read_packet(), iff_read_packet(), initializations(), input_thread(), ism_write_packet(), kmsgrab_read_packet(), lavfi_read_packet(), libkvazaar_encode(), librav1e_receive_packet(), libx265_encode_frame(), libxeve_encode(), LLVMFuzzerTestOneInput(), lmlm4_read_packet(), lvf_read_packet(), lxf_read_packet(), main(), mediacodec_receive(), mf_sample_to_avpacket(), mkv_write_packet(), mkv_write_packet_internal(), mlp_encode_frame(), modplug_read_packet(), mods_read_packet(), moflex_read_packet(), mov_create_chapter_track(), mov_create_timecode_track(), mov_finalize_packet(), mov_parse_vc1_frame(), mov_read_packet(), mov_write_single_packet(), mp3_read_packet(), mpeg_mux_write_packet(), mpegts_write_packet_internal(), msnwc_tcp_read_packet(), msp_read_packet(), msrle_encode_frame(), mux_frames(), mux_packet_filter(), muxer_thread(), mv_read_packet(), new_pes_packet(), noise(), nsv_read_chunk(), nut_write_packet(), nuv_packet(), of_streamcopy(), ogg_read_packet(), ogg_write_packet_internal(), omx_encode_frame(), parse_packet(), pdv_read_packet(), pkt_dump_internal(), pp_bnk_read_packet(), prepare_input_packet(), process_output_surface(), qt_rtp_parse_packet(), qtrle_encode_frame(), read_dst_frame(), read_frame(), read_frame_internal(), read_packet(), read_packet_vs(), remove_extradata(), rm_write_packet(), roq_encode_frame(), rpl_read_packet(), scd_read_packet(), sdr2_read_packet(), sds_read_packet(), seek_frame_generic(), seg_write_packet(), sga_audio_packet(), sga_video_packet(), show_packet(), siff_read_packet(), simbiosis_imx_read_packet(), smacker_read_packet(), smc_encode_frame(), smush_read_packet(), sol_read_packet(), storeframe(), sup_read_packet(), svc_encode_frame(), svq1_encode_frame(), svs_read_packet(), swf_read_packet(), swf_write_packet(), tmv_read_packet(), trace_headers(), update_initial_timestamps(), vaapi_encode_set_output_property(), vc1t_read_packet(), vc1test_write_packet(), vid_read_packet(), decklink_input_callback::VideoInputFrameArrived(), viv_read_packet(), vp8_handle_packet(), vtenc_cm_to_avpacket(), webm_chunk_write_packet(), wrapped_avframe_decode(), wrapped_avframe_encode(), write_packet(), write_timestamp(), write_uncoded_frame_internal(), X264_frame(), xavs2_encode_frame(), XAVS_frame(), xmv_fetch_video_packet(), xvid_encode_frame(), yop_read_packet(), and zerocodec_decode_frame().

◆ side_data

AVPacketSideData* AVPacket::side_data

◆ side_data_elems

int AVPacket::side_data_elems

◆ duration

int64_t AVPacket::duration

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

Equals next_pts - this_pts in presentation order.

Examples
mux.c, and remux.c.

Definition at line 540 of file packet.h.

Referenced by aac_encode_frame(), aal_read_packet(), aax_read_packet(), add_event(), adx_read_packet(), aiff_read_packet(), aix_read_packet(), amv_init(), amv_write_packet_internal(), ape_read_packet(), apng_read_packet(), aptx_encode_frame(), aqt_read_header(), argo_brp_read_packet(), asf_write_packet(), ass_read_header(), audio_write_frame(), audio_write_packet(), av_packet_copy_props(), av_packet_rescale_ts(), av_read_frame(), avcodec_decode_subtitle2(), avformat_find_stream_info(), avi_write_packet_internal(), avisynth_read_packet_audio(), avisynth_read_packet_video(), binka_read_packet(), bmv_read_packet(), cdxl_read_packet(), check_pkt(), cin_read_packet(), codec2_read_packet(), compute_muxer_pkt_fields(), compute_pkt_fields(), dash_write_packet(), dhav_read_packet(), do_subtitle_out(), drop_dups(), dsf_read_packet(), dss_723_1_read_packet(), dss_sp_read_packet(), ea_read_packet(), enc_stats_write(), encode_apng(), encode_frame(), estimate_timings_from_pts(), ff_decode_frame_props_from_pkt(), ff_encode_encode_cb(), ff_interleave_add_packet(), ff_mov_generate_squashed_ttml_packet(), ff_mov_write_packet(), ff_mpv_encode_picture(), ff_subtitles_queue_finalize(), ff_subtitles_queue_seek(), ff_write_chained(), ffat_encode(), fifo_thread_write_packet(), fill_timing_for_id3_timestamped_stream(), film_read_packet(), film_write_packet(), fits_read_packet(), flv_write_packet(), frame_data_apply(), framecrc_write_packet(), fsb_read_packet(), g723_1_read_packet(), g729_read_packet(), gif_get_delay(), gsm_read_packet(), guess_pkt_duration(), gxf_packet(), h264_queue_frame(), handle_eac3(), hca_read_packet(), hls_write_packet(), idcin_read_packet(), iff_read_packet(), ilbc_read_packet(), imf_read_packet(), initializations(), input_packet_process(), ist_dts_update(), ivf_write_packet(), jacosub_read_header(), libjxl_receive_frame(), libopus_encode(), librav1e_receive_packet(), libshine_encode_frame(), libvorbis_encode_frame(), libwebp_anim_encode_frame(), libx265_encode_frame(), log_packet(), lrc_read_header(), mcc_read_header(), microdvd_read_header(), microdvd_write_packet(), mkv_write_block(), mkv_write_packet_internal(), mlp_encode_frame(), moflex_read_packet(), mov_create_chapter_track(), mov_finalize_packet(), mov_read_packet(), mov_write_squashed_packet(), mov_write_subtitle_end_packet(), mov_write_ttml_document_from_queue(), mp3lame_encode_frame(), mpc8_read_packet(), mpegts_raw_read_packet(), mpl2_read_header(), mpsub_read_header(), mux_fixup_ts(), mux_frames(), mux_log_debug_ts(), mxf_set_pts(), noise(), nvenc_retrieve_frame_data(), ogg_read_packet(), ogg_write_packet_internal(), opus_encode_frame(), packet_queue_get(), packet_queue_put_private(), parse_file(), parse_packet(), pdv_read_packet(), pjs_read_header(), pkt_dump_internal(), pp_bnk_read_packet(), prepare_packet(), pulse_write_frame(), pulse_write_packet(), qoa_read_packet(), r3d_read_reda(), r3d_read_redv(), ra144_encode_frame(), read_dst_frame(), read_frame(), read_frame_internal(), read_packet(), realtext_read_header(), redspark_read_packet(), rka_read_packet(), roq_dpcm_encode_frame(), rpl_read_packet(), rsd_read_packet(), sami_read_header(), scc_read_header(), scd_read_packet(), seg_write_packet(), send_packet(), send_to_mux(), setts_filter(), sga_audio_packet(), sga_video_packet(), show_packet(), showinfo_filter(), siff_read_packet(), simbiosis_imx_read_packet(), smacker_read_packet(), smjpeg_write_packet(), smush_read_packet(), srt_write_packet(), stl_read_header(), storeframe(), str_read_packet(), subviewer1_read_header(), subviewer_read_header(), tedcaptions_read_header(), thp_read_packet(), threedostr_read_packet(), trace_headers(), ts_fixup(), tta_read_packet(), tta_write_packet(), ttml_write_packet(), twolame_encode_frame(), update_initial_durations(), vaapi_encode_set_output_property(), vid_read_packet(), decklink_input_callback::VideoInputFrameArrived(), vivo_read_packet(), vorbis_encode_frame(), vplayer_read_header(), vqf_read_packet(), webvtt_read_header(), webvtt_write_packet(), write_packet(), write_uncoded_frame_internal(), wsaud_read_packet(), wsvqa_read_packet(), wv_read_packet(), X264_frame(), xa_read_packet(), xcbgrab_read_packet(), xmv_fetch_audio_packet(), xmv_fetch_video_packet(), and yuv4_read_packet().

◆ pos

int64_t AVPacket::pos

byte position in stream, -1 if unknown

Examples
remux.c.

Definition at line 542 of file packet.h.

Referenced by aal_read_packet(), aax_read_packet(), ac4_read_packet(), add_event(), adx_read_packet(), aix_read_packet(), aqt_read_header(), asf_parse_packet(), asf_read_pts(), ass_read_header(), ast_read_packet(), av_get_packet(), av_packet_copy_props(), av_read_frame(), avi_read_packet(), binka_read_packet(), cdxl_read_packet(), create_subcc_packet(), dash_write_packet(), dat_read_packet(), decode_frame(), decode_simple_internal(), dhav_read_packet(), dsf_read_packet(), dss_723_1_read_packet(), dss_sp_read_packet(), ff_decode_frame_props_from_pkt(), ff_img_read_packet(), ff_raw_read_partial_packet(), ff_spdif_read_packet(), flv_read_packet(), fourxm_read_packet(), fsb_read_packet(), g723_1_read_packet(), g729_read_packet(), get_frag_stream_info_from_pkt(), get_packet_defaults(), gif_read_packet(), gsm_read_packet(), iff_read_packet(), ifv_read_packet(), imf_read_packet(), initializations(), ivr_read_packet(), jacosub_read_header(), jpegxl_anim_read_packet(), laf_read_packet(), lavfi_read_packet(), libuavs3d_decode_frame(), LLVMFuzzerTestOneInput(), load_ipmovie_packet(), lrc_read_header(), lvf_read_packet(), main(), mcc_read_header(), microdvd_read_header(), mods_read_packet(), moflex_read_packet(), mov_finalize_packet(), mov_read_packet(), mpegps_read_packet(), mpegts_get_dts(), mpegts_raw_read_packet(), mpjpeg_read_packet(), mpl2_read_header(), mpsub_read_header(), mtv_read_packet(), mxf_read_packet(), new_pes_packet(), noise(), nuv_packet(), ogg_read_packet(), parse_file(), parse_packet(), pjs_read_header(), qoa_read_packet(), rawvideo_read_packet(), read_dst_frame(), read_frame(), read_frame_internal(), read_interval_packets(), read_packet(), realtext_read_header(), report_new_stream(), rm_assemble_video_frame(), roq_read_packet(), rsd_read_packet(), sami_read_header(), scc_read_header(), sdr2_read_packet(), sds_read_packet(), ser_read_packet(), set_output_frame(), sga_audio_packet(), sga_video_packet(), show_packet(), simbiosis_imx_read_packet(), smjpeg_read_packet(), stl_read_header(), str_read_packet(), subviewer1_read_header(), subviewer_read_header(), sup_read_packet(), swf_read_packet(), threedostr_read_packet(), usm_read_packet(), vc1t_read_packet(), viv_read_packet(), vmd_read_packet(), vpk_read_packet(), vplayer_read_header(), vqf_read_packet(), webvtt_read_header(), wsvqa_read_packet(), wv_read_packet(), and yop_read_packet().

◆ opaque

void* AVPacket::opaque

◆ opaque_ref

AVBufferRef* AVPacket::opaque_ref

AVBufferRef for free use by the API user.

FFmpeg will never check the contents of the buffer ref. FFmpeg calls av_buffer_unref() on it when the packet is unreferenced. av_packet_copy_props() calls create a new reference with av_buffer_ref() for the target packet's opaque_ref field.

This is unrelated to the opaque field, although it serves a similar purpose.

Definition at line 558 of file packet.h.

Referenced by av_packet_copy_props(), av_packet_unref(), dec_standalone_open(), enc_stats_write(), ff_decode_frame_props_from_pkt(), ff_encode_reordered_opaque(), frame_data_apply(), librav1e_receive_packet(), libwebp_anim_encode_frame(), libx265_encode_frame(), mux_log_debug_ts(), nvenc_retrieve_frame_data(), of_streamcopy(), packet_data(), packet_data_c(), read_interval_packets(), vaapi_encode_set_output_property(), and X264_frame().

◆ time_base

AVRational AVPacket::time_base

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