FFmpeg
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. 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_tdata
 
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...
 
attribute_deprecated int64_t convergence_duration
 

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

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

See also
av_packet_ref
av_packet_unref
Examples
decode_audio.c, decode_video.c, demuxing_decoding.c, encode_audio.c, encode_video.c, filtering_audio.c, filtering_video.c, hw_decode.c, muxing.c, qsvdec.c, remuxing.c, transcode_aac.c, transcoding.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 1454 of file avcodec.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, muxing.c, and remuxing.c.

Definition at line 1470 of file avcodec.h.

Referenced by a64multi_encode_frame(), aac_encode_frame(), aal_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(), asf_parse_packet(), asf_write_packet(), ass_read_header(), audio_read_packet(), av_init_packet(), av_interleaved_write_frame(), av_packet_copy_props(), av_packet_rescale_ts(), av_read_frame(), av_write_uncoded_frame_internal(), avcodec_decode_subtitle2(), avcodec_encode_audio2(), avcodec_encode_video2(), avf_read_packet(), avformat_find_stream_info(), avisynth_read_packet_audio(), avisynth_read_packet_video(), avpriv_dv_produce_packet(), 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_pkt_fields(), concat_read_packet(), convert_sub_to_old_ass_form(), create_subcc_packet(), crystalhd_decode_packet(), dash_read_packet(), dash_write_packet(), davs2_decode_frame(), dc1394_read_packet(), decklink_write_audio_packet(), decklink_write_video_packet(), decode_audio(), decode_frame(), decode_simple_internal(), demux_audio(), demux_video(), dhav_read_packet(), do_audio_out(), do_streamcopy(), do_subtitle_out(), do_video_out(), drop_dups(), encode(), encode_apng(), encode_frame(), encode_superframe(), estimate_timings_from_pts(), failing_write_packet(), fbdev_read_packet(), ff_audio_rechunk_interleave(), ff_decklink_write_packet(), ff_decode_frame_props(), ff_img_read_packet(), ff_interleaved_peek(), ff_mediacodec_dec_send(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_mpv_encode_picture(), ff_qsv_encode(), ff_qsv_process_data(), 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_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_thread_attempt_recovery(), fifo_thread_process_recovery_failure(), fill_timing_for_id3_timestamped_stream(), film_read_packet(), film_write_packet(), film_write_packet_to_header(), finalize_packet(), fits_read_packet(), flac_decode_frame(), flac_encode_frame(), flac_read_timestamp(), flv_data_packet(), flv_read_packet(), flv_write_packet(), fourxm_read_packet(), framecrc_write_packet(), g729_read_packet(), gdigrab_read_packet(), get_needed_flags(), gif_decode_frame(), gif_get_delay(), grab_read_packet(), gsm_read_packet(), h264_redundant_pps_filter(), hls_write_packet(), ifv_read_packet(), image_available(), initializations(), interleave_new_audio_packet(), iss_read_packet(), ivf_write_packet(), ivr_read_packet(), jacosub_read_header(), kmsgrab_read_packet(), lavfi_read_packet(), libaribb24_decode(), libdav1d_receive_frame(), libkvazaar_encode(), libopus_encode(), libshine_encode_frame(), libvorbis_encode_frame(), libwebp_anim_encode_frame(), libx265_encode_frame(), LLVMFuzzerTestOneInput(), load_ipmovie_packet(), log_packet(), lrc_read_header(), lrc_write_packet(), lvf_read_packet(), main(), microdvd_read_header(), microdvd_write_packet(), mkv_start_new_cluster(), mkv_write_block(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_vtt_blocks(), mlp_encode_frame(), mmap_read_frame(), modplug_read_packet(), mov_create_chapter_track(), mov_flush_fragment(), mov_read_packet(), mov_write_single_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_read_header(), mpsub_read_header(), msnwc_tcp_read_packet(), mux_frames(), mv_read_packet(), mxf_set_audio_pts(), mxf_set_pts(), mxg_read_packet(), new_pes_packet(), nut_write_packet(), nuv_packet(), nvenc_set_timestamp(), ogg_read_packet(), ogg_write_packet_internal(), omx_encode_frame(), opus_encode_frame(), parse_file(), parse_packet(), pcm_dvd_encode_frame(), pjs_read_header(), pkt_dump_internal(), prepare_input_packet(), prepare_packet(), process_callback(), process_input(), process_input_packet(), pulse_read_packet(), pva_read_packet(), qsv_decode(), ra144_encode_frame(), rawvideo_read_packet(), rdt_parse_packet(), read_frame_internal(), read_interval_packets(), read_packet(), read_packet_vs(), read_thread(), realtext_read_header(), 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(), sbg_read_packet(), scc_read_header(), scc_write_packet(), scte_data_cb(), search_sub_ts(), seg_write_packet(), seq_read_packet(), ser_read_packet(), show_packet(), signal_init_ts(), smacker_read_packet(), smjpeg_read_packet(), smjpeg_write_packet(), smvjpeg_decode_frame(), 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(), tta_encode_frame(), twolame_encode_frame(), update_dts_from_pts(), update_initial_durations(), update_initial_timestamps(), update_wrap_reference(), v210_read_packet(), vaapi_encode_output(), 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(), vplayer_read_header(), vtenc_cm_to_avpacket(), wait_frame(), wavpack_encode_frame(), wc3_read_packet(), webm_chunk_write_packet(), webp_write_packet(), webvtt_read_header(), webvtt_write_packet(), write_packet(), write_timestamp(), wv_read_packet(), X264_frame(), xavs2_encode_frame(), XAVS_frame(), 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
muxing.c, and remuxing.c.

Definition at line 1476 of file avcodec.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_init_packet(), av_interleaved_write_frame(), av_packet_copy_props(), av_packet_rescale_ts(), av_read_frame(), av_write_uncoded_frame_internal(), avcodec_encode_audio2(), avcodec_encode_video2(), 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_pkt_fields(), concat_read_packet(), dash_write_packet(), davs2_decode_frame(), decode_frame(), decode_simple_internal(), decode_video(), do_audio_out(), do_streamcopy(), do_subtitle_out(), do_video_out(), encode_apng(), encode_frame(), ff_audio_rechunk_interleave(), ff_interleave_add_packet(), ff_interleave_packet_per_dts(), ff_interleaved_peek(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_mpv_encode_picture(), ff_qsv_encode(), ff_qsv_process_data(), ff_read_packet(), 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(), 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_subtitle_pkt(), gif_decode_frame(), gxf_compare_field_nb(), gxf_packet(), gxf_write_media_preamble(), hds_write_packet(), hls_read_packet(), initializations(), interleave_compare_dts(), interleave_new_audio_packet(), ism_write_packet(), libaribb24_decode(), libkvazaar_encode(), libwebp_anim_encode_frame(), libx265_encode_frame(), LLVMFuzzerTestOneInput(), log_packet(), lxf_read_packet(), main(), mkv_start_new_cluster(), mkv_write_block(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_vtt_blocks(), modplug_read_packet(), mov_create_chapter_track(), mov_flush_fragment(), mov_read_packet(), mov_write_packet(), mov_write_single_packet(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_get_dts(), mpegts_write_packet_internal(), msnwc_tcp_read_packet(), mux_frames(), mxf_compare_timestamps(), mxf_set_pts(), mxg_read_packet(), new_pes_packet(), nsv_read_chunk(), nut_write_packet(), nvenc_set_timestamp(), ogg_read_packet(), omx_encode_frame(), packet_after_outpoint(), parse_packet(), pkt_dump_internal(), prepare_input_packet(), prepare_packet(), process_input(), process_input_packet(), pulse_write_frame(), pulse_write_packet(), r3d_read_reda(), r3d_read_redv(), rawvideo_read_packet(), read_frame_internal(), read_packet(), read_thread(), report_new_stream(), reset_packet_state(), rtp_mpegts_write_packet(), sbg_read_packet(), scte_data_cb(), seek_frame_generic(), seg_write_packet(), ser_read_packet(), show_packet(), signal_init_ts(), storeframe(), sup_read_packet(), sup_write_packet(), trace_headers(), tta_read_packet(), update_dts_from_pts(), update_initial_durations(), update_initial_timestamps(), update_wrap_reference(), v210_read_packet(), video_decode_example(), decklink_input_callback::VideoInputFrameArrived(), vp9_decode_frame(), vtenc_cm_to_avpacket(), write_packet(), X264_frame(), xavs2_encode_frame(), XAVS_frame(), xmv_fetch_audio_packet(), and xmv_fetch_video_packet().

◆ data

uint8_t* AVPacket::data
Examples
decode_audio.c, decode_video.c, demuxing_decoding.c, encode_audio.c, encode_video.c, hw_decode.c, qsvdec.c, transcode_aac.c, transcoding.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 1477 of file avcodec.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(), adpcm_decode_frame(), adts_aac_read_packet(), adts_write_packet(), adx_decode_frame(), adx_encode_frame(), adx_read_packet(), aic_decode_frame(), aiff_write_packet(), alac_decode_frame(), amf_copy_buffer(), amr_handle_packet(), amr_read_packet(), amr_wb_encode_frame(), amrnb_decode_frame(), amrwb_decode_frame(), aom_decode(), ape_decode_frame(), ape_read_packet(), append_flv_data(), append_packet_chunked(), aptx_decode_frame(), aptx_encode_frame(), 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(), 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_bitstream_filter_filter(), av_bsf_send_packet(), av_dup_packet(), av_free_packet(), av_get_packet(), av_grow_packet(), av_new_packet(), av_packet_from_data(), av_packet_make_refcounted(), av_packet_make_writable(), av_packet_merge_side_data(), av_packet_ref(), av_packet_split_side_data(), av_packet_unref(), av_shrink_packet(), av_write_uncoded_frame_internal(), avcodec_decode_subtitle2(), avcodec_encode_audio2(), avcodec_encode_video2(), avcodec_send_packet(), avf_read_packet(), avi_read_packet(), avi_write_packet_internal(), 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(), bitpacked_decode_uyvy422(), bitpacked_decode_yuv422p10(), bmp_decode_frame(), bmp_encode_frame(), bmv_aud_decode_frame(), bmv_read_packet(), caca_write_packet(), caf_write_packet(), callback(), cavs_decode_frame(), cdg_decode_frame(), cdxl_decode_frame(), cdxl_read_packet(), cenc_filter(), cfhd_decode(), check_hevc_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_crc_of_packets(), cook_decode_frame(), copy_cvpixelbuffer(), copy_packet_data(), cpia_decode_frame(), crc_write_packet(), create_subcc_packet(), crystalhd_decode_packet(), cyuv_decode_frame(), daud_write_packet(), davs2_decode_frame(), dc1394_read_packet(), dca_core_filter(), dcadec_decode_frame(), dds_decode(), decklink_write_audio_packet(), decklink_write_video_packet(), decode(), decode_dlta(), decode_frame(), decode_kfrm(), decode_move(), decode_packet(), decode_plane(), decode_simple_internal(), decode_tag(), decode_zlib(), decoder_decode_frame(), demux_audio(), demux_video(), dfa_decode_frame(), dfa_read_packet(), dirac_decode_frame(), dnxhd_decode_frame(), dnxhd_encode_picture(), do_audio_out(), do_encode(), do_streamcopy(), do_subtitle_out(), do_video_out(), dolby_e_decode_frame(), dpcm_decode_frame(), drop_dups(), dsf_read_packet(), dss_723_1_read_packet(), dss_sp_decode_frame(), dss_sp_read_packet(), dv_write_packet(), dvbsub_decode(), dvdsub_decode(), dvvideo_decode_frame(), dvvideo_encode_frame(), dxa_read_packet(), dxv_decode(), ea_read_packet(), eac3_core_filter(), eightsvx_decode_frame(), encode(), encode_apng(), encode_frame(), encode_nals(), encode_picture_ls(), encode_png(), encode_superframe(), encode_write(), encode_write_frame(), escape124_decode_frame(), escape130_decode_frame(), evrc_decode_frame(), extract_extradata_av1(), extract_extradata_h2645(), extract_extradata_mpeg12(), extract_extradata_mpeg4(), extract_extradata_vc1(), failing_write_packet(), fbdev_read_packet(), fbdev_write_packet(), FDBPrepare(), fdk_aac_decode_frame(), ff_alloc_packet2(), ff_audio_rechunk_interleave(), ff_cbs_read_packet(), ff_cbs_write_packet(), ff_check_h264_startcode(), ff_flac_parse_picture(), ff_get_packet_palette(), ff_h263_decode_frame(), ff_h263_handle_packet(), ff_h264_handle_aggregated_packet(), ff_h264_handle_frag_packet(), ff_id3v2_parse_apic(), 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_qsv_process_data(), 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_thread_video_encode_frame(), 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_decode(), fic_decode_frame(), film_write_packet(), filter(), 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_encoders(), flush_packet(), flv_check_bitstream(), flv_write_packet(), fourxm_read_packet(), framecrc_write_packet(), free_stream(), frm_read_packet(), fsb_read_packet(), g2m_decode_frame(), g722_decode_frame(), g723_1_decode_frame(), g723_1_read_packet(), gdigrab_read_packet(), gdv_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_needed_flags(), get_subtitle_pkt(), decklink_frame::GetBytes(), gif_decode_frame(), gif_encode_frame(), 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(), handle_chunk_size(), handle_id3(), handle_invoke(), handle_invoke_error(), handle_invoke_status(), handle_metadata(), handle_notify(), handle_set_peer_bw(), handle_user_control(), handle_window_ack_size(), hap_decode(), hap_encode(), hapqa_extract(), hcom_decode(), hevc_decode_frame(), hevc_handle_packet(), hls_read_packet(), hnm_decode_frame(), hnm_read_header(), 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(), ilbc_read_packet(), ilbc_write_packet(), image_available(), imc_decode_frame(), init_packet(), initializations(), interleave_new_audio_packet(), ipvideo_decode_frame(), ir2_decode_frame(), is_animated_webp_packet(), ivf_write_packet(), jacosub_decode_frame(), jacosub_read_header(), jpeg2000_decode_frame(), kmsgrab_read_packet(), lag_decode_frame(), latm_check_bitstream(), latm_decode_frame(), latm_parse_packet(), latm_write_packet(), lavfi_read_packet(), libaribb24_decode(), libcelt_dec_decode(), libcodec2_decode(), libcodec2_encode(), libdav1d_receive_frame(), libgsm_decode_frame(), libgsm_encode_frame(), libkvazaar_encode(), libopenjpeg_decode_frame(), libopus_decode(), libopus_encode(), librsvg_decode_frame(), libshine_encode_frame(), libspeex_decode_frame(), libvorbis_encode_frame(), libwebp_anim_encode_frame(), libwebp_encode_frame(), libx265_encode_frame(), 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(), microdvd_decode_frame(), microdvd_write_packet(), mimic_decode_frame(), mjpegb_decode_frame(), mkv_check_bitstream(), mkv_write_block(), mkv_write_vtt_blocks(), mlp_encode_frame(), mm_decode_frame(), mmap_read_frame(), modplug_read_packet(), mov2textsub(), mov_check_bitstream(), mov_create_chapter_track(), mov_create_timecode_track(), mov_parse_mpeg2_frame(), mov_parse_vc1_frame(), mov_read_covr(), mov_read_packet(), mov_text_decode_frame(), mov_write_covr(), mov_write_packet(), movie_push_frame(), 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(), 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(), msrle_decode_frame(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_frame(), msvideo1_decode_frame(), mux_frames(), mvc_decode_frame(), mxf_decrypt_triplet(), mxf_get_d10_aes3_packet(), mxf_parse_dnxhd_frame(), mxf_parse_dv_frame(), mxf_parse_h264_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(), omx_encode_frame(), on2avc_decode_frame(), opengl_get_plane_pointer(), opus_decode_packet(), opus_get_packet_samples(), opus_packet_assembler(), pack_bitstream(), packet_queue_put_nullpacket(), paf_audio_decode(), paf_video_decode(), pam_encode_frame(), parse_packet(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcm_dvd_decode_frame(), pcm_dvd_encode_frame(), pcm_encode_frame(), pcx_decode_frame(), pcx_encode_frame(), pix_decode_frame(), pixlet_decode_frame(), pkt_dump_internal(), pnm_decode_frame(), pnm_encode_frame(), probe_codec(), process_callback(), process_input_packet(), 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(), qsv_decode(), 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(), 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(), reset_packet(), return_stored_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(), rscc_decode_frame(), rsd_read_packet(), rso_write_packet(), rtmp_send_packet(), rtp_mpegts_write_packet(), rtp_parse_packet_internal(), rtp_write_packet(), run_test(), rv10_decode_frame(), s302m_decode_frame(), s302m_encode2_frame(), s337m_read_packet(), sami_decode_frame(), sbc_decode_frame(), sbc_pack_frame(), sbg_read_packet(), scc_write_packet(), screenpresso_decode_frame(), sdl2_write_packet(), sdr2_read_packet(), sds_read_packet(), send_invoke_response(), seq_read_packet(), seqvideo_decode_frame(), sgirle_decode_frame(), shorten_decode_frame(), show_packet(), siff_read_packet(), signal_init_ts(), 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(), speedhq_decode_frame(), srt_decode_frame(), srt_write_packet(), store_packet(), storeframe(), str_read_close(), str_read_packet(), stream_write(), 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(), tdsc_decode_jpeg_tile(), teletext_decode_frame(), 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(), try_decode_video_frame(), tscc2_decode_frame(), tta_decode_frame(), tta_encode_frame(), tta_queue_flush(), 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_output(), vble_decode_frame(), vc1_decode_frame(), vc1test_write_packet(), vc2hq_handle_frame_fragment(), vc2hq_handle_sequence_header(), vc2hq_mark_end_of_sequence(), vcr1_decode_frame(), video_decode(), video_decode_example(), 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(), vp8_lossy_decode_frame(), vp9_decode_frame(), vpk_read_packet(), vpx_decode(), vqa_decode_frame(), vqf_read_packet(), vtenc_cm_to_avpacket(), wavesynth_decode(), wavpack_decode_frame(), wavpack_encode_frame(), wc3_read_header(), wc3_read_packet(), webp_decode_frame(), webp_write_packet(), webvtt_decode_frame(), webvtt_write_packet(), wma_decode_superframe(), wmavoice_decode_packet(), worker(), wrapped_avframe_decode(), wrapped_avframe_encode(), write_frame(), write_packet(), write_skip_frames(), write_table_entries_attrib(), ws_snd_decode_frame(), wsaud_read_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, demuxing_decoding.c, encode_audio.c, encode_video.c, hw_decode.c, qsvdec.c, transcode_aac.c, transcoding.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 1478 of file avcodec.h.

Referenced by a64multi_encode_frame(), aac_adtstoasc_filter(), aac_decode_frame(), aac_encode_frame(), aasc_decode_frame(), ac3_decode_frame(), adpcm_decode_frame(), adts_aac_read_packet(), 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(), android_camera_read_packet(), aom_decode(), ape_decode_frame(), ape_read_packet(), append_flv_data(), append_packet_chunked(), aptx_decode_frame(), asf_parse_packet(), asf_read_header(), asf_read_pts(), asf_read_timestamp(), asf_write_packet(), ass_decode_frame(), ast_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_bitstream_filter_filter(), av_free_packet(), av_get_packet(), av_grow_packet(), av_interleaved_write_frame(), av_new_packet(), av_packet_from_data(), av_packet_make_refcounted(), av_packet_make_writable(), av_packet_merge_side_data(), av_packet_ref(), av_packet_split_side_data(), av_packet_unref(), av_shrink_packet(), av_write_uncoded_frame_internal(), avcodec_decode_subtitle2(), avcodec_encode_audio2(), avcodec_encode_video2(), 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(), avpacket_queue_get(), avpacket_queue_put(), avpriv_dv_get_packet(), avpriv_dv_produce_packet(), 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(), caf_write_packet(), cavs_decode_frame(), cdg_decode_frame(), cdxl_decode_frame(), cenc_filter(), cfhd_decode(), check_hevc_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(), compat_decode(), compute_crc_of_packets(), compute_pkt_fields(), cook_decode_frame(), copy_cvpixelbuffer(), copy_packet_data(), cpia_decode_frame(), crc_write_packet(), crystalhd_decode_packet(), crystalhd_receive_frame(), 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(), decode(), decode_frame(), decode_packet(), decode_simple_internal(), decode_styl(), decode_tag(), decode_video(), demux_audio(), demux_video(), dfa_decode_frame(), dfa_read_packet(), dirac_decode_frame(), dnxhd_decode_frame(), do_audio_out(), do_streamcopy(), do_subtitle_out(), do_video_out(), dolby_e_decode_frame(), dpcm_decode_frame(), dshow_read_packet(), dss_723_1_read_packet(), dss_sp_decode_frame(), dss_sp_read_packet(), dv_write_packet(), dvbsub_decode(), dvdsub_decode(), dvvideo_decode_frame(), dxv_decode(), ea_read_packet(), eac3_core_filter(), eightsvx_decode_frame(), encode(), encode_apng(), encode_callback(), encode_frame(), encode_nals(), encode_picture_ls(), encode_png(), encode_superframe(), encode_write(), encode_write_frame(), escape124_decode_frame(), escape130_decode_frame(), estimate_timings_from_pts(), evrc_decode_frame(), extract_extradata_av1(), extract_extradata_h2645(), extract_extradata_mpeg12(), extract_extradata_mpeg4(), extract_extradata_vc1(), extract_packet_props(), FDBPrepare(), fdk_aac_decode_frame(), ff_alloc_packet2(), ff_audio_rechunk_interleave(), ff_cbs_read_packet(), ff_cbs_write_packet(), ff_check_h264_startcode(), ff_compute_frame_duration(), ff_decode_frame_props(), ff_decode_get_packet(), ff_flac_parse_picture(), ff_get_packet_palette(), ff_h263_decode_frame(), ff_id3v2_parse_apic(), 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_qsv_process_data(), 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_vp56_decode_frame(), ffat_create_decoder(), ffat_decode(), ffat_decode_callback(), ffat_encode(), ffmmal_add_packet(), ffmmal_decode(), fic_decode_frame(), film_write_packet(), film_write_packet_to_header(), filter(), find_best_header_idx(), find_tracked_method(), fits_decode_frame(), fits_encode_frame(), fits_read_packet(), fits_write_packet(), flac_decode_frame(), flac_encode_frame(), flac_read_timestamp(), flac_write_audio_packet(), flac_write_picture(), flashsv2_encode_frame(), flashsv_decode_frame(), flashsv_encode_frame(), flic_decode_frame(), flush_encoders(), flush_packet(), flv_check_bitstream(), flv_data_packet(), flv_write_packet(), framecrc_write_packet(), frm_read_packet(), fsb_read_packet(), g2m_decode_frame(), g722_decode_frame(), g723_1_decode_frame(), g723_1_encode_frame(), g723_1_read_packet(), gdv_decode_frame(), gen_connect(), get_needed_flags(), gif_decode_frame(), gif_encode_frame(), gif_write_packet(), gsm_decode_frame(), gxf_write_media_preamble(), gxf_write_packet(), h261_decode_frame(), h264_decode_frame(), handle_chunk_size(), handle_id3(), handle_invoke(), handle_invoke_error(), handle_invoke_status(), handle_metadata(), handle_notify(), handle_set_peer_bw(), handle_user_control(), handle_window_ack_size(), hap_decode(), hap_encode(), hapqa_extract(), hcom_decode(), hevc_decode_frame(), hnm_decode_frame(), hnm_read_close(), hnm_read_header(), 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(), ilbc_write_packet(), imc_decode_frame(), init_packet(), initializations(), interleave_new_audio_packet(), ipvideo_decode_frame(), ir2_decode_frame(), is_animated_webp_packet(), ivf_write_packet(), jacosub_decode_frame(), jpeg2000_decode_frame(), kmsgrab_read_packet(), lag_decode_frame(), latm_check_bitstream(), latm_decode_frame(), latm_write_packet(), lavfi_read_packet(), libaribb24_decode(), libcelt_dec_decode(), libcodec2_decode(), libdav1d_receive_frame(), libgsm_decode_frame(), libopenjpeg_decode_frame(), libopus_decode(), libopus_encode(), librsvg_decode_frame(), libshine_encode_frame(), libspeex_decode_frame(), libvorbis_encode_frame(), libwebp_anim_encode_frame(), libwebp_encode_frame(), ljpeg_encode_frame(), LLVMFuzzerTestOneInput(), lrc_write_packet(), m101_decode_frame(), mace_decode_frame(), magy_decode_frame(), magy_encode_frame(), main(), microdvd_decode_frame(), microdvd_write_packet(), mimic_decode_frame(), mjpegb_decode_frame(), mkv_check_bitstream(), mkv_write_block(), mkv_write_header(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_trailer(), mkv_write_vtt_blocks(), mlp_encode_frame(), mm_decode_frame(), mmap_read_frame(), modplug_read_packet(), mov2textsub(), mov_check_bitstream(), mov_create_chapter_track(), mov_create_timecode_track(), mov_parse_mpeg2_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(), movie_push_frame(), 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_check_bitstream(), mpegts_read_packet(), mpegts_write_packet_internal(), mpjpeg_read_packet(), mpjpeg_write_packet(), mpl2_decode_frame(), msrle_decode_frame(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_frame(), msvideo1_decode_frame(), mux_frames(), mvc_decode_frame(), mxf_parse_dnxhd_frame(), mxf_parse_dv_frame(), mxf_parse_h264_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(), nsv_read_packet(), nut_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_queue_get(), packet_queue_put_nullpacket(), packet_queue_put_private(), paf_audio_decode(), paf_video_decode(), pam_encode_frame(), parse_packet(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcm_dvd_decode_frame(), pcm_dvd_encode_frame(), pcx_decode_frame(), pcx_encode_frame(), pix_decode_frame(), pixlet_decode_frame(), pkt_dump_internal(), pnm_decode_frame(), pnm_encode_frame(), probe_codec(), process_input(), process_input_packet(), prores_encode_frame(), prores_metadata(), ptx_decode_frame(), pulse_write_frame(), pulse_write_packet(), qcelp_decode_frame(), qdm2_decode_frame(), qdm2_restore_block(), qdmc_decode_frame(), qsv_decode(), qsv_decode_frame(), qt_rtp_parse_packet(), qtrle_decode_frame(), qtrle_encode_frame(), ra144_decode_frame(), ra144_encode_frame(), ra288_decode_frame(), raw_encode(), read_access_unit(), read_connect(), read_frame_internal(), read_gab2_sub(), read_number_result(), read_packet(), read_packet_gme(), read_packet_openmpt(), read_packet_vs(), realtext_decode_frame(), recode_subtitle(), remove_extradata(), rkmpp_send_packet(), rl2_decode_frame(), rm_ac3_swap_bytes(), rm_assemble_video_frame(), rm_write_packet(), roq_decode_frame(), roq_encode_frame(), rpza_decode_frame(), rscc_decode_frame(), rsd_read_packet(), rso_write_packet(), rtmp_send_packet(), rtp_mpegts_write_packet(), rtp_write_packet(), run_test(), rv10_decode_frame(), s302m_decode_frame(), s337m_read_packet(), sami_decode_frame(), sbc_decode_frame(), sbc_pack_frame(), sbg_read_packet(), scc_write_packet(), screenpresso_decode_frame(), send_invoke_response(), seqvideo_decode_frame(), sgirle_decode_frame(), shorten_decode_frame(), show_packet(), siff_read_packet(), signal_init_ts(), sipr_decode_frame(), smacker_read_packet(), smc_decode_frame(), smjpeg_write_packet(), smka_decode_frame(), smvjpeg_decode_frame(), sp5x_decode_frame(), spdif_header_dts(), spdif_header_dts4(), spdif_header_eac3(), spdif_header_truehd(), spdif_write_packet(), speedhq_decode_frame(), srt_decode_frame(), srt_write_packet(), storeframe(), str_read_packet(), stream_seek(), stream_skip(), stream_write(), 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(), tdsc_decode_jpeg_tile(), teletext_decode_frame(), text_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), tmv_decode_frame(), tqi_decode_frame(), trace_headers(), transcode_subtitles(), truehd_core_filter(), truemotion1_decode_frame(), truemotion2rt_decode_frame(), truemotion2rt_decode_header(), truespeech_decode_frame(), try_decode_frame(), try_decode_video_frame(), tscc2_decode_frame(), tta_decode_frame(), tta_encode_frame(), tta_queue_flush(), tta_write_packet(), twolame_encode_frame(), txd_decode_frame(), ulti_decode_frame(), utvideo_encode_frame(), v308_decode_frame(), v408_decode_frame(), v410_decode_frame(), v4l2_read_packet(), v4l2_receive_frame(), vble_decode_frame(), vc1_decode_frame(), vc1t_read_packet(), vc1test_write_packet(), vc2_encode_frame(), vcr1_decode_frame(), vfw_read_packet(), video_decode(), video_decode_example(), 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(), vp8_lossy_decode_frame(), vp9_decode_frame(), vpx_decode(), vqa_decode_frame(), vtenc_cm_to_avpacket(), wavesynth_decode(), wavpack_decode_frame(), wavpack_encode_frame(), wc3_read_close(), wc3_read_header(), wc3_read_packet(), webp_decode_frame(), webp_write_packet(), webvtt_decode_frame(), webvtt_write_packet(), wma_decode_superframe(), wmavoice_decode_packet(), worker(), wrapped_avframe_decode(), wrapped_avframe_encode(), write_frame(), write_packet(), write_skip_frames(), write_table_entries_attrib(), write_table_redirector_legacy_attrib(), ws_snd_decode_frame(), wv_read_packet(), wv_write_packet(), xan_decode_frame(), xavs2_encode_frame(), xbm_decode_frame(), xbm_encode_frame(), xface_decode_frame(), xpm_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().

◆ stream_index

int AVPacket::stream_index
Examples
demuxing_decoding.c, filtering_audio.c, filtering_video.c, hw_decode.c, muxing.c, qsvdec.c, remuxing.c, transcoding.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 1479 of file avcodec.h.

Referenced by aac_parse_packet(), aal_read_packet(), ac3_handle_packet(), adp_read_packet(), ads_read_packet(), adx_read_packet(), aea_read_packet(), afc_read_packet(), aiff_read_packet(), aiff_write_packet(), aix_read_packet(), amr_handle_packet(), amr_read_packet(), apc_read_packet(), ape_read_packet(), ape_tag_read_field(), asf_parse_packet(), asf_read_packet(), asf_read_payload(), asf_read_picture(), asf_read_pts(), asf_read_subpayload(), asf_read_timestamp(), asf_write_packet(), asfrtp_parse_packet(), ast_read_packet(), 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(), 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(), avpriv_dv_produce_packet(), avs_read_audio_packet(), avs_read_video_packet(), bfi_read_packet(), bmv_read_packet(), callback(), cdxl_read_packet(), check_packet(), check_pkt(), cin_read_packet(), cine_read_packet(), compute_crc_of_packets(), compute_pkt_fields(), concat_read_packet(), create_subcc_packet(), dash_check_bitstream(), dash_read_packet(), dash_write_packet(), daud_packet(), dc1394_read_packet(), decklink_write_video_packet(), decode_frame(), decode_packet(), demux_audio(), demux_video(), dhav_read_packet(), do_packet_auto_bsf(), drop_dups(), dsf_read_packet(), dshow_read_packet(), dss_723_1_read_packet(), dss_sp_read_packet(), dv_write_packet(), dxa_read_packet(), ea_read_packet(), encode_write(), encode_write_frame(), estimate_timings_from_pts(), 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_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(), find_video_stream_info(), fits_read_packet(), flac_write_packet(), flac_write_picture(), flv_check_bitstream(), 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_attachment(), get_needed_flags(), get_subtitle_pkt(), get_timebase(), 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(), hevc_handle_packet(), hls_read_packet(), hls_write_packet(), ico_write_packet(), idcin_read_packet(), iff_read_packet(), ifv_read_packet(), ilbc_read_packet(), image_available(), ingenient_read_packet(), interleave_compare_dts(), interleave_new_audio_packet(), ism_write_packet(), iss_read_packet(), ivf_check_bitstream(), ivr_read_packet(), latm_check_bitstream(), latm_parse_packet(), lavfi_read_packet(), lmlm4_read_packet(), load_ipmovie_packet(), log_packet(), lvf_read_packet(), lxf_read_packet(), main(), mkv_check_bitstream(), mkv_check_new_extra_data(), mkv_write_block(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_vtt_blocks(), mmf_read_packet(), modplug_read_packet(), mov_check_bitstream(), mov_create_chapter_track(), mov_create_timecode_track(), mov_read_chapters(), mov_read_covr(), mov_read_packet(), mov_write_packet(), mov_write_single_packet(), movie_push_frame(), 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_check_bitstream(), mpegts_get_dts(), mpegts_raw_read_packet(), mpegts_write_packet_internal(), msnwc_tcp_read_packet(), mtv_read_packet(), mux_frames(), mv_read_packet(), mxf_compare_timestamps(), mxf_decrypt_triplet(), mxf_interleave_get_packet(), mxf_read_packet(), mxf_set_audio_pts(), mxf_write_packet(), mxg_read_packet(), nc_read_packet(), new_pes_packet(), nsv_read_chunk(), nut_write_packet(), nuv_packet(), ogg_read_packet(), ogg_write_packet_internal(), packet_after_outpoint(), packet_queue_put_nullpacket(), parse_packet(), pkt_dump_internal(), pmp_packet(), prepare_input_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_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(), scte_data_cb(), sdr2_read_packet(), sds_read_packet(), seek_frame_generic(), seg_check_bitstream(), seg_write_packet(), seq_read_packet(), ser_read_packet(), show_packet(), siff_read_packet(), signal_init_ts(), smacker_read_packet(), smjpeg_read_packet(), smjpeg_write_packet(), smush_read_packet(), sol_read_packet(), store_packet(), str_read_packet(), sup_read_packet(), swf_read_packet(), swf_write_packet(), tee_write_packet(), thp_read_packet(), threedostr_read_packet(), tmv_read_packet(), txd_read_packet(), update_dts_from_pts(), update_initial_durations(), update_initial_timestamps(), v210_read_packet(), 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(), wc3_read_packet(), webm_chunk_write_packet(), write_frame(), write_packet(), write_skip_frames(), write_table_entries_attrib(), write_table_redirector_legacy_attrib(), write_timestamp(), 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 1483 of file avcodec.h.

Referenced by a64multi_encode_frame(), aal_read_packet(), aiff_read_packet(), amf_copy_buffer(), apc_read_packet(), ape_tag_read_field(), apng_read_packet(), append_packet_chunked(), asf_parse_packet(), asf_read_multiple_payload(), asf_read_packet(), asf_read_payload(), asf_read_picture(), asf_read_pts(), asf_read_timestamp(), asf_write_packet(), av_init_packet(), av_packet_copy_props(), av_read_frame(), av_write_uncoded_frame_internal(), avcodec_encode_audio2(), avf_read_packet(), avi_read_packet(), avi_write_packet_internal(), avpriv_dv_produce_packet(), avs_read_audio_packet(), avs_read_video_packet(), avui_encode_frame(), bmp_encode_frame(), cdxl_read_packet(), cine_read_packet(), cinepak_encode_frame(), compute_pkt_fields(), dash_write_packet(), dc1394_read_packet(), decode_frame(), decode_frame_common(), dhav_read_packet(), dnxhd_encode_picture(), do_streamcopy(), dvvideo_encode_frame(), ea_read_packet(), encode_frame(), encode_picture_ls(), encode_png(), ff_decode_frame_props(), ff_flac_parse_picture(), ff_id3v2_parse_apic(), ff_img_read_packet(), ff_interleave_add_packet(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_mpv_encode_picture(), ff_pcm_read_packet(), ff_qsv_encode(), ff_read_packet(), 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(), framecrc_write_packet(), gdv_read_packet(), get_attachment(), get_needed_flags(), gif_encode_frame(), gif_read_packet(), h263_handle_packet(), hap_encode(), hds_write_packet(), hls_read_packet(), hls_write_packet(), idcin_read_packet(), iff_read_packet(), initializations(), ism_write_packet(), kmsgrab_read_packet(), libkvazaar_encode(), libopenjpeg_encode_frame(), libwebp_anim_encode_frame(), libwebp_encode_frame(), libx265_encode_frame(), ljpeg_encode_frame(), LLVMFuzzerTestOneInput(), lmlm4_read_packet(), lvf_read_packet(), lxf_read_packet(), magy_encode_frame(), main(), mkv_write_packet(), mkv_write_packet_internal(), modplug_read_packet(), mov_parse_vc1_frame(), mov_read_chapters(), 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(), mux_frames(), mv_read_packet(), new_pes_packet(), nsv_read_chunk(), nut_write_packet(), nuv_packet(), ogg_read_packet(), ogg_write_packet_internal(), omx_encode_frame(), pam_encode_frame(), parse_packet(), pcx_encode_frame(), pkt_dump_internal(), pnm_encode_frame(), process_input(), process_output_surface(), prores_encode_frame(), qt_rtp_parse_packet(), qtrle_encode_frame(), raw_encode(), read_dst_frame(), read_frame(), read_frame_internal(), read_packet(), read_packet_vs(), remove_extradata(), reset_packet_state(), rm_write_packet(), roq_encode_frame(), rpl_read_packet(), sdr2_read_packet(), sds_read_packet(), seek_frame_generic(), seg_write_packet(), show_packet(), siff_read_packet(), smush_read_packet(), sol_read_packet(), storeframe(), sunrast_encode_frame(), sup_read_packet(), svc_encode_frame(), svq1_encode_frame(), targa_encode_frame(), tmv_read_packet(), trace_headers(), update_initial_timestamps(), utvideo_encode_frame(), v308_encode_frame(), v408_encode_frame(), v410_encode_frame(), vaapi_encode_output(), 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(), 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().

◆ 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
muxing.c, and remuxing.c.

Definition at line 1495 of file avcodec.h.

Referenced by aac_encode_frame(), aal_read_packet(), add_event(), adx_read_packet(), aiff_read_packet(), aix_read_packet(), amr_read_packet(), apng_read_packet(), aptx_encode_frame(), aqt_read_header(), asf_write_packet(), ass_read_header(), audio_write_frame(), audio_write_packet(), av_init_packet(), av_packet_copy_props(), av_packet_rescale_ts(), av_read_frame(), av_write_uncoded_frame_internal(), avcodec_decode_subtitle2(), avcodec_encode_audio2(), avformat_find_stream_info(), avi_write_packet_internal(), avisynth_read_packet_audio(), avisynth_read_packet_video(), bmv_read_packet(), cdxl_read_packet(), check_pkt(), cin_read_packet(), codec2_read_packet(), compute_pkt_fields(), convert_sub_to_old_ass_form(), dash_write_packet(), dhav_read_packet(), do_streamcopy(), do_subtitle_out(), drop_dups(), dss_723_1_read_packet(), dss_sp_read_packet(), ea_read_packet(), encode_frame(), estimate_timings_from_pts(), ff_audio_rechunk_interleave(), ff_decode_frame_props(), ff_interleave_add_packet(), ff_mov_write_packet(), ff_subtitles_queue_finalize(), ff_subtitles_queue_seek(), ff_write_chained(), ffat_encode(), fill_timing_for_id3_timestamped_stream(), film_read_packet(), film_write_packet(), film_write_packet_to_header(), flac_encode_frame(), flv_write_packet(), framecrc_write_packet(), fsb_read_packet(), g723_1_read_packet(), gif_decode_frame(), gif_read_packet(), gsm_read_packet(), gxf_interleave_packet(), gxf_packet(), hls_write_packet(), idcin_read_packet(), iff_read_packet(), ilbc_read_packet(), initializations(), interleave_new_audio_packet(), jacosub_read_header(), libdav1d_receive_frame(), libopus_encode(), libshine_encode_frame(), libvorbis_encode_frame(), log_packet(), lrc_read_header(), main(), microdvd_read_header(), microdvd_write_packet(), mkv_write_block(), mkv_write_packet_internal(), mkv_write_vtt_blocks(), mlp_encode_frame(), mov_create_chapter_track(), mov_read_packet(), mp3lame_encode_frame(), mpc8_read_packet(), mpegts_raw_read_packet(), mpl2_read_header(), mpsub_read_header(), mux_frames(), mxf_set_pts(), ogg_read_packet(), ogg_write_packet_internal(), opus_encode_frame(), packet_queue_get(), packet_queue_put_private(), parse_file(), parse_packet(), pcm_dvd_encode_frame(), pjs_read_header(), pkt_dump_internal(), prepare_packet(), process_input_packet(), pulse_write_frame(), pulse_write_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(), reset_packet_state(), roq_dpcm_encode_frame(), rpl_read_packet(), rsd_read_packet(), sami_read_header(), sbg_read_packet(), scc_read_header(), seg_write_packet(), show_packet(), siff_read_packet(), smjpeg_write_packet(), smush_read_packet(), srt_write_packet(), stl_read_header(), str_read_packet(), subviewer1_read_header(), subviewer_read_header(), tedcaptions_read_header(), thp_read_packet(), threedostr_read_packet(), trace_headers(), tta_encode_frame(), tta_read_packet(), tta_write_packet(), twolame_encode_frame(), update_initial_durations(), vid_read_packet(), decklink_input_callback::VideoInputFrameArrived(), vorbis_encode_frame(), vplayer_read_header(), vqf_read_packet(), wavpack_encode_frame(), webvtt_read_header(), webvtt_write_packet(), write_packet(), wsaud_read_packet(), wsvqa_read_packet(), wv_read_packet(), xa_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
remuxing.c.

Definition at line 1497 of file avcodec.h.

Referenced by aa_read_packet(), aal_read_packet(), add_event(), adx_read_packet(), aix_read_packet(), amr_read_packet(), append_packet_chunked(), aqt_read_header(), asf_parse_packet(), asf_read_pts(), ass_read_header(), ast_read_packet(), av_get_packet(), av_init_packet(), av_packet_copy_props(), av_read_frame(), avi_read_packet(), avpriv_dv_produce_packet(), cdxl_read_packet(), create_subcc_packet(), decode_frame(), decode_simple_internal(), dhav_read_packet(), dss_723_1_read_packet(), dss_sp_read_packet(), ff_decode_frame_props(), ff_img_read_packet(), ff_qsv_process_data(), 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(), gsm_read_packet(), iff_read_packet(), ifv_read_packet(), ilbc_read_packet(), initializations(), ivr_read_packet(), jacosub_read_header(), lavfi_read_packet(), libdav1d_receive_frame(), LLVMFuzzerTestOneInput(), load_ipmovie_packet(), lrc_read_header(), lvf_read_packet(), main(), microdvd_read_header(), 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(), nuv_packet(), ogg_read_packet(), parse_file(), parse_packet(), pjs_read_header(), rawvideo_read_packet(), read_dst_frame(), read_frame(), read_frame_internal(), read_packet(), realtext_read_header(), report_new_stream(), rm_assemble_video_frame(), roq_read_packet(), rsd_read_packet(), s337m_read_packet(), sami_read_header(), scc_read_header(), sdr2_read_packet(), sds_read_packet(), ser_read_packet(), show_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(), v210_read_packet(), vc1t_read_packet(), viv_read_packet(), vmd_read_packet(), vplayer_read_header(), vqf_read_packet(), webvtt_read_header(), wv_read_packet(), and yop_read_packet().

◆ convergence_duration

attribute_deprecated int64_t AVPacket::convergence_duration
Deprecated:
Same as the duration field, but as int64_t.

This was required for Matroska subtitles, whose duration values could overflow when the duration field was still an int.

Definition at line 1506 of file avcodec.h.

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


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