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

This structure stores compressed data. More...

#include <avcodec.h>

Data Fields

AVBufferRefbuf
 A reference to the reference-counted buffer where the packet data is stored. 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:
decoding_encoding.c, demuxing_decoding.c, filtering_audio.c, filtering_video.c, muxing.c, qsvdec.c, remuxing.c, transcode_aac.c, and transcoding.c.

Definition at line 1557 of file avcodec.h.

Field Documentation

AVBufferRef* AVPacket::buf
int64_t AVPacket::pts

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

Can be AV_NOPTS_VALUE if it is not stored in the file. pts MUST be larger or equal to dts as presentation cannot happen before decompression, unless one wants to view hex dumps. Some formats misuse the terms dts and pts/cts to mean something different. Such timestamps must be converted to true pts/dts before they are stored in AVPacket.

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

Definition at line 1573 of file avcodec.h.

Referenced by a64multi_encode_frame(), aac_encode_frame(), add_event(), adx_read_packet(), amr_wb_encode_frame(), ape_read_packet(), apng_read_packet(), aqt_read_header(), asf_parse_packet(), asf_write_packet(), ass_read_header(), audio_decode_example(), 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(), cin_read_packet(), cine_read_packet(), cmp_pkt_sub_pos_ts(), cmp_pkt_sub_ts_pos(), compute_crc_of_packets(), compute_pkt_fields(), concat_read_packet(), convert_sub_to_old_ass_form(), create_subcc_packet(), dash_write_packet(), decklink_write_audio_packet(), decklink_write_video_packet(), decode(), decode_audio(), decode_frame(), decoder_decode_frame(), do_audio_out(), do_decode(), do_qsv_decode(), do_streamcopy(), do_subtitle_out(), do_video_out(), drop_dups(), encode_apng(), encode_frame(), encode_superframe(), estimate_timings_from_pts(), Faac_encode_frame(), fbdev_read_packet(), ff_audio_rechunk_interleave(), ff_decklink_write_packet(), ff_img_read_packet(), ff_init_buffer_info(), ff_mediacodec_dec_decode(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_mpv_encode_picture(), ff_read_packet(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ff_subtitles_queue_finalize(), ff_subtitles_queue_insert(), ff_subtitles_queue_read_packet(), ff_subtitles_queue_seek(), ff_vaapi_encode2(), ff_voc_get_packet(), ff_write_chained(), ffat_decode(), ffat_encode(), ffm_read_packet(), ffm_write_packet(), ffmmal_add_packet(), fill_timing_for_id3_timestamped_stream(), film_read_packet(), finalize_packet(), flac_decode_frame(), flac_encode_frame(), flac_read_timestamp(), flic_read_packet(), flush(), flush_packet(), flv_data_packet(), flv_read_packet(), flv_write_packet(), fourxm_read_packet(), framecrc_write_packet(), g722_encode_frame(), g729_read_packet(), gdigrab_read_packet(), get_needed_flags(), gif_decode_frame(), grab_read_packet(), gsm_read_packet(), hls_write_packet(), http_prepare_data(), interleave_new_audio_packet(), iss_read_packet(), ivf_write_packet(), ivr_read_packet(), jacosub_read_header(), lavfi_read_packet(), libkvazaar_encode(), libopus_encode(), libschroedinger_decode_frame(), libschroedinger_encode_frame(), libshine_encode_frame(), libvorbis_encode_frame(), libwebp_anim_encode_frame(), libx265_encode_frame(), load_ipmovie_packet(), log_packet(), lrc_read_header(), lrc_write_packet(), lvf_read_packet(), main(), matroska_parse_frame(), matroska_parse_rm_audio(), matroska_parse_webvtt(), microdvd_read_header(), microdvd_write_packet(), mkv_start_new_cluster(), mkv_write_block(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_vtt_blocks(), mmap_read_frame(), modplug_read_packet(), mov_create_chapter_track(), mov_flush_fragment(), mov_read_packet(), mov_write_single_packet(), mov_write_subtitle_end_packet(), mp3lame_encode_frame(), MPA_encode_frame(), mpc_read_packet(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_raw_read_packet(), mpegts_write_packet_internal(), mpl2_read_header(), mpsub_read_header(), msnwc_tcp_read_packet(), mux_frames(), mv_read_packet(), mxf_read_packet(), mxf_read_packet_old(), mxf_set_audio_pts(), mxg_read_packet(), new_pes_packet(), nut_read_packet(), nut_write_packet(), nuv_packet(), nvenc_set_timestamp(), ogg_read_packet(), ogg_write_packet_internal(), oma_read_packet(), omx_encode_frame(), parse_file(), parse_packet(), pjs_read_header(), pkt_dump_internal(), prepare_input_packet(), process_callback(), process_input(), process_input_packet(), pulse_read_packet(), pva_read_packet(), qsv_decode_frame(), qsv_decode_init(), qtkit_read_packet(), ra144_encode_frame(), rawvideo_read_packet(), rdt_parse_packet(), read_frame_internal(), read_interval_packets(), read_packet(), read_thread(), realtext_read_header(), 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(), search_sub_ts(), seg_write_packet(), seq_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(), svc_encode_frame(), swf_read_packet(), tedcaptions_read_header(), tee_write_packet(), teletext_decode_frame(), 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(), 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_frame(), write_packet(), write_timestamp(), wv_read_packet(), x11grab_read_packet(), X264_frame(), XAVS_frame(), xmv_fetch_audio_packet(), xmv_fetch_video_packet(), and yuv4_read_packet().

int64_t AVPacket::dts

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

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

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

Definition at line 1579 of file avcodec.h.

Referenced by a64multi_encode_frame(), asf_parse_packet(), asf_read_packet(), asf_read_payload(), asf_read_pts(), asf_read_subpayload(), asf_read_timestamp(), asf_write_packet(), audio_decode_example(), 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_decode_audio4(), avcodec_decode_video2(), 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(), compute_pkt_fields(), concat_read_packet(), dash_write_packet(), decode(), decode_frame(), decode_video(), decoder_decode_frame(), do_audio_out(), do_decode(), do_streamcopy(), do_video_out(), encode_apng(), encode_frame(), ff_audio_rechunk_interleave(), ff_interleave_add_packet(), ff_interleave_packet_per_dts(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_mpv_encode_picture(), ff_qsv_encode(), ff_read_packet(), ff_subtitles_queue_insert(), ff_subtitles_queue_read_packet(), ff_thread_decode_frame(), ff_vaapi_encode2(), ff_voc_get_packet(), ff_write_chained(), ffm_read_packet(), ffm_write_packet(), ffmmal_add_packet(), fill_timing_for_id3_timestamped_stream(), 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(), http_prepare_data(), interleave_compare_dts(), interleave_new_audio_packet(), ism_write_packet(), libkvazaar_encode(), libschroedinger_encode_frame(), libwebp_anim_encode_frame(), libx265_encode_frame(), log_packet(), lxf_read_packet(), main(), matroska_parse_frame(), 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(), mov_write_subtitle_end_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_read_packet(), mxf_read_packet_old(), mxg_read_packet(), new_pes_packet(), nsv_read_chunk(), nut_write_packet(), nvenc_set_timestamp(), ogg_read_packet(), oma_read_packet(), omx_encode_frame(), packet_after_outpoint(), parse_packet(), pkt_dump_internal(), prepare_input_packet(), process_input(), process_input_packet(), pulse_write_frame(), pulse_write_packet(), qtkit_read_packet(), r3d_read_reda(), r3d_read_redv(), rawvideo_read_packet(), read_frame_internal(), read_packet(), read_thread(), report_new_stream(), rtp_mpegts_write_packet(), sbg_read_packet(), seek_frame_generic(), seg_write_packet(), show_packet(), signal_init_ts(), storeframe(), sup_read_packet(), tee_write_packet(), 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_frame(), write_packet(), X264_frame(), XAVS_frame(), xmv_fetch_audio_packet(), and xmv_fetch_video_packet().

uint8_t* AVPacket::data
Examples:
decoding_encoding.c, demuxing_decoding.c, filtering_audio.c, qsvdec.c, transcode_aac.c, and transcoding.c.

Definition at line 1580 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(), adpcm_encode_frame(), adts_write_packet(), adx_decode_frame(), adx_encode_frame(), adx_read_packet(), aic_decode_frame(), aiff_write_packet(), alac_decode_frame(), alloc_and_copy(), amr_handle_packet(), amr_read_packet(), amr_wb_encode_frame(), amrnb_decode_frame(), amrwb_decode_frame(), ape_decode_frame(), ape_read_packet(), append_packet_chunked(), asf_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(), atrac3p_decode_frame(), audio_decode_example(), audio_encode_example(), 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_merge_side_data(), av_packet_move_ref(), av_packet_ref(), av_packet_split_side_data(), av_packet_unref(), av_shrink_packet(), av_write_uncoded_frame_internal(), avcodec_decode_audio4(), avcodec_decode_subtitle2(), avcodec_encode_audio2(), avcodec_encode_video2(), avf_read_packet(), avformat_find_stream_info(), 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(), 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(), cfhd_decode(), check_hevc_startcode(), chomp_filter(), cin_read_packet(), cinaudio_decode_frame(), cinepak_decode_frame(), cinepak_encode_frame(), cinvideo_decode_frame(), cllc_decode_frame(), cmv_decode_frame(), cng_decode_frame(), cng_encode_frame(), compute_crc_of_packets(), cook_decode_frame(), copy_packet_data(), cpia_decode_frame(), crc_write_packet(), create_subcc_packet(), cyuv_decode_frame(), daud_write_packet(), dca_core_filter(), dcadec_decode_frame(), dds_decode(), decklink_write_audio_packet(), decklink_write_video_packet(), decode(), decode_frame(), decode_packet(), decode_tag(), decode_write_frame(), decoder_decode_frame(), dfa_decode_frame(), dfa_read_packet(), dirac_decode_frame(), dnxhd_decode_frame(), dnxhd_encode_picture(), do_audio_out(), do_decode(), do_encode(), do_qsv_decode(), do_subtitle_out(), do_video_out(), dpcm_decode_frame(), drop_dups(), dss_723_1_read_packet(), dss_sp_decode_frame(), dss_sp_read_packet(), dump_extradata(), dv_extract_audio_info(), dv_write_packet(), dvbsub_decode(), dvdsub_decode(), dvvideo_decode_frame(), dvvideo_encode_frame(), dxa_read_packet(), dxv_decode(), ea_read_packet(), eightsvx_decode_frame(), encode_apng(), encode_callback(), encode_frame(), encode_nals(), encode_picture_ls(), encode_png(), encode_superframe(), encode_write_frame(), escape124_decode_frame(), escape130_decode_frame(), evrc_decode_frame(), extract_mpeg4_header(), Faac_encode_frame(), fbdev_read_packet(), fbdev_write_packet(), fdk_aac_decode_frame(), ff_alloc_packet2(), ff_audio_rechunk_interleave(), ff_bsf_get_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_decode(), 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_rtp_finalize_packet(), ff_rv34_decode_frame(), ff_spdif_read_packet(), ff_subtitles_queue_insert(), ff_thread_video_encode_frame(), ff_twinvq_decode_frame(), ff_vp56_decode_frame(), ffat_create_decoder(), ffat_decode(), ffat_decode_callback(), ffat_encode(), ffm_read_packet(), ffm_write_packet(), ffmmal_add_packet(), ffmmal_decode(), fic_decode_frame(), filter(), filter_packet(), find_best_header_idx(), flac_decode_frame(), flac_read_timestamp(), flac_write_packet(), flashsv2_encode_frame(), flashsv_decode_block(), flashsv_decode_frame(), flashsv_encode_frame(), flic_decode_frame(), flic_read_packet(), flush(), flush_encoders(), flush_packet(), flv_write_packet(), fourxm_read_packet(), framecrc_write_packet(), free_stream(), frm_read_packet(), fsb_read_packet(), g2m_decode_frame(), g722_decode_frame(), g722_encode_frame(), g723_1_decode_frame(), g723_1_read_packet(), gdigrab_read_packet(), genh_read_packet(), get_needed_flags(), get_subtitle_pkt(), gif_decode_frame(), gif_encode_frame(), grab_read_packet(), gsm_decode_frame(), gxf_write_media_preamble(), gxf_write_packet(), h261_decode_frame(), h264_decode_frame(), h264_handle_packet(), h264_mp4toannexb_filter(), hap_decode(), hap_encode(), hevc_decode_frame(), hevc_handle_packet(), hevc_mp4toannexb_filter(), 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(), iff_read_packet(), ilbc_decode_frame(), ilbc_encode_frame(), ilbc_read_packet(), ilbc_write_packet(), imc_decode_frame(), imx_dump_header(), init_packet(), 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(), lag_decode_frame(), latm_check_bitstream(), latm_decode_frame(), latm_parse_packet(), latm_write_packet(), lavfi_read_packet(), libcelt_dec_decode(), libgsm_decode_frame(), libgsm_encode_frame(), libkvazaar_encode(), libopenjpeg_decode_frame(), libopenjpeg_encode_frame(), libopus_decode(), libopus_encode(), libschroedinger_decode_frame(), libschroedinger_encode_frame(), libshine_encode_frame(), libspeex_decode_frame(), libvorbis_encode_frame(), libwebp_anim_encode_frame(), libwebp_encode_frame(), libx265_encode_frame(), ljpeg_encode_frame(), load_ipmovie_packet(), lrc_write_packet(), lxf_read_packet(), m101_decode_frame(), mace_decode_frame(), main(), matroska_parse_frame(), matroska_parse_rm_audio(), matroska_parse_webvtt(), matroska_read_header(), mediacodec_decode_frame(), merge_superframe(), microdvd_decode_frame(), microdvd_write_packet(), mimic_decode_frame(), mjpeg2jpeg_filter(), mjpega_dump_header(), mjpegb_decode_frame(), mkv_check_bitstream(), mkv_write_block(), mkv_write_vtt_blocks(), mm_decode_frame(), mmap_read_frame(), modplug_read_packet(), mov2textsub(), mov_create_timecode_track(), mov_parse_mpeg2_frame(), mov_parse_vc1_frame(), mov_read_covr(), mov_read_packet(), mov_text_decode_frame(), mov_write_packet(), mov_write_subtitle_end_packet(), movie_push_frame(), mp3_header_decompress(), 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(), 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_d10_video_packet(), mxf_write_opatom_packet(), mxf_write_packet(), mxg_read_packet(), mxpeg_decode_frame(), new_pes_packet(), noise(), nsv_read_chunk(), nsv_read_close(), nsv_read_header(), nsv_read_packet(), nut_read_packet(), nut_write_packet(), nuv_packet(), ogg_read_packet(), oggvorbis_decode_frame(), oma_read_packet(), omx_encode_frame(), on2avc_decode_frame(), opengl_get_plane_pointer(), opus_decode_packet(), opus_get_packet_samples(), 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_encode_frame(), pcx_decode_frame(), pcx_encode_frame(), pix_decode_frame(), pkt_dump_internal(), pnm_decode_frame(), pnm_encode_frame(), probe_codec(), process_callback(), process_frame(), process_input_packet(), process_output_surface(), prores_encode_frame(), ptx_decode_frame(), pulse_read_packet(), pulse_write_frame(), pulse_write_packet(), qcelp_decode_frame(), qdm2_decode_frame(), qdm2_restore_block(), qsv_decode_frame(), qsv_decode_init(), qt_rtp_close(), qt_rtp_parse_packet(), qtkit_read_packet(), qtrle_decode_frame(), qtrle_encode_frame(), ra144_decode_frame(), ra144_encode_frame(), ra288_decode_frame(), raw_encode(), read_access_unit(), read_frame(), read_gab2_sub(), read_interval_packets(), read_packet(), read_packet_gme(), realtext_decode_frame(), recode_subtitle(), remove_extradata(), reset_packet(), return_stored_frame(), rl2_decode_frame(), rm_ac3_swap_bytes(), rm_assemble_video_frame(), rm_write_packet(), roq_decode_frame(), roq_dpcm_encode_frame(), roq_encode_frame(), roq_read_packet(), rpza_decode_frame(), rscc_decode_frame(), rsd_read_packet(), rso_write_packet(), rtp_mpegts_write_packet(), rtp_parse_packet_internal(), rtp_write_packet(), run_test(), rv10_decode_frame(), s302m_decode_frame(), s302m_encode2_frame(), sami_decode_frame(), sbg_read_packet(), screenpresso_decode_frame(), sdl_write_packet(), sdr2_read_packet(), 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(), 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(), 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(), text2movsub(), text_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), thp_read_packet(), tmv_decode_frame(), tqi_decode_frame(), truemotion1_decode_frame(), truespeech_decode_frame(), try_decode_frame(), try_decode_video_frame(), tscc2_decode_frame(), tta_decode_frame(), tta_encode_frame(), 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(), video_encode_example(), decklink_input_callback::VideoInputFrameArrived(), videostream_cb(), 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_decode(), vp8_lossy_decode_frame(), vp9_decode_frame(), vp9_superframe_filter(), vpk_read_packet(), 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_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(), x11grab_read_packet(), xan_decode_frame(), XAVS_frame(), xbm_decode_frame(), xbm_encode_frame(), xcbgrab_frame(), xface_decode_frame(), xface_encode_frame(), xiph_handle_packet(), xmv_fetch_video_packet(), xv_write_packet(), xvid_encode_frame(), xvid_strip_vol_header(), xwd_decode_frame(), xwd_encode_frame(), y216_decode_frame(), y41p_decode_frame(), y41p_encode_frame(), yop_decode_frame(), yop_read_packet(), yuv4_decode_frame(), yuv4_encode_frame(), yuv4_write_packet(), zero12v_decode_frame(), and zerocodec_decode_frame().

int AVPacket::size
Examples:
decoding_encoding.c, demuxing_decoding.c, filtering_audio.c, qsvdec.c, transcode_aac.c, and transcoding.c.

Definition at line 1581 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(), adpcm_encode_frame(), adts_write_packet(), adx_decode_frame(), adx_encode_frame(), adx_read_packet(), aic_decode_frame(), aiff_write_packet(), alac_decode_frame(), alac_encode_frame(), alloc_and_copy(), amr_handle_packet(), amr_wb_encode_frame(), amrnb_decode_frame(), amrwb_decode_frame(), ape_decode_frame(), ape_read_packet(), append_packet_chunked(), asf_parse_packet(), asf_read_header(), asf_read_pts(), asf_read_timestamp(), asf_write_packet(), ass_decode_frame(), ast_write_packet(), atrac1_decode_frame(), atrac3_decode_frame(), atrac3p_decode_frame(), attachment_value_size(), audio_decode_example(), audio_encode_example(), 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_merge_side_data(), av_packet_move_ref(), av_packet_ref(), av_packet_split_side_data(), av_packet_unref(), av_shrink_packet(), av_write_uncoded_frame_internal(), avcodec_decode_audio4(), avcodec_decode_subtitle2(), avcodec_decode_video2(), avcodec_encode_audio2(), avcodec_encode_video2(), avcodec_receive_frame(), avcodec_send_packet(), avf_read_packet(), avformat_find_stream_info(), avformat_queue_attached_pictures(), 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(), bmp_decode_frame(), bmv_aud_decode_frame(), bmv_read_packet(), caf_write_packet(), cavs_decode_frame(), cdg_decode_frame(), cdxl_decode_frame(), cfhd_decode(), check_hevc_startcode(), chomp_filter(), cinaudio_decode_frame(), cinepak_decode_frame(), cinepak_encode_frame(), cinvideo_decode_frame(), cllc_decode_frame(), cmv_decode_frame(), cng_decode_frame(), cng_encode_frame(), compute_crc_of_packets(), compute_pkt_fields(), cook_decode_frame(), copy_packet_data(), cpia_decode_frame(), crc_write_packet(), cyuv_decode_frame(), daud_write_packet(), dc1394_read_common(), dca_core_filter(), dcadec_decode_frame(), dds_decode(), decklink_write_audio_packet(), decode(), decode_frame(), decode_packet(), decode_styl(), decode_tag(), decode_video(), decode_write_frame(), decoder_decode_frame(), dfa_decode_frame(), dfa_read_packet(), dirac_decode_frame(), dnxhd_decode_frame(), do_audio_out(), do_decode(), do_qsv_decode(), do_streamcopy(), do_subtitle_out(), do_video_out(), dpcm_decode_frame(), dshow_read_packet(), dss_723_1_read_packet(), dss_sp_decode_frame(), dss_sp_read_packet(), dump_extradata(), dv_extract_audio_info(), dv_write_packet(), dvbsub_decode(), dvdsub_decode(), dvvideo_decode_frame(), dxv_decode(), ea_read_packet(), eightsvx_decode_frame(), encode_apng(), encode_callback(), encode_frame(), encode_nals(), encode_picture_ls(), encode_png(), encode_superframe(), encode_write_frame(), escape124_decode_frame(), escape130_decode_frame(), estimate_timings_from_pts(), evrc_decode_frame(), extract_mpeg4_header(), Faac_encode_frame(), fdk_aac_decode_frame(), ff_alloc_packet2(), ff_audio_rechunk_interleave(), ff_check_h264_startcode(), 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_init_buffer_info(), ff_interleave_add_packet(), ff_ivi_decode_frame(), ff_mediacodec_dec_decode(), ff_mjpeg_decode_frame(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_mpv_encode_picture(), ff_raw_write_packet(), ff_read_packet(), ff_reshuffle_raw_rgb(), ff_rtp_finalize_packet(), ff_rv34_decode_frame(), ff_spdif_read_packet(), ff_subtitles_queue_insert(), ff_thread_decode_frame(), ff_twinvq_decode_frame(), ff_vp56_decode_frame(), ffat_create_decoder(), ffat_decode(), ffat_decode_callback(), ffat_encode(), ffm_write_packet(), ffmmal_add_packet(), ffmmal_decode(), fic_decode_frame(), filter(), filter_packet(), find_best_header_idx(), flac_decode_frame(), flac_encode_frame(), flac_read_timestamp(), flac_write_packet(), flashsv2_encode_frame(), flashsv_decode_frame(), flashsv_encode_frame(), flic_decode_frame(), flush(), flush_encoders(), flush_packet(), 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(), get_needed_flags(), gif_decode_frame(), gif_encode_frame(), grab_read_packet(), gsm_decode_frame(), gxf_write_media_preamble(), gxf_write_packet(), h261_decode_frame(), h264_decode_frame(), h264_mp4toannexb_filter(), hap_decode(), hevc_decode_frame(), hevc_mp4toannexb_filter(), 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(), iff_read_packet(), ilbc_decode_frame(), ilbc_encode_frame(), ilbc_write_packet(), imc_decode_frame(), imx_dump_header(), init_packet(), ipvideo_decode_frame(), ir2_decode_frame(), is_animated_webp_packet(), ivf_write_packet(), jacosub_decode_frame(), jpeg2000_decode_frame(), lag_decode_frame(), latm_check_bitstream(), latm_decode_frame(), latm_write_packet(), lavfi_read_packet(), libcelt_dec_decode(), libgsm_decode_frame(), libopenjpeg_decode_frame(), libopus_decode(), libopus_encode(), libschroedinger_decode_frame(), libshine_encode_frame(), libspeex_decode_frame(), libvorbis_encode_frame(), libwebp_anim_encode_frame(), libwebp_encode_frame(), ljpeg_encode_frame(), lrc_write_packet(), m101_decode_frame(), mace_decode_frame(), main(), mediacodec_decode_frame(), merge_superframe(), microdvd_decode_frame(), microdvd_write_packet(), mimic_decode_frame(), mjpeg2jpeg_filter(), mjpega_dump_header(), 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(), mm_decode_frame(), mmap_read_frame(), modplug_read_packet(), mov2textsub(), mov_create_timecode_track(), mov_parse_mpeg2_frame(), mov_parse_vc1_frame(), mov_read_covr(), mov_read_packet(), mov_text_decode_frame(), mov_write_packet(), mov_write_single_packet(), mov_write_subtitle_end_packet(), movie_push_frame(), mp3_header_decompress(), 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(), 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(), 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_set_audio_pts(), mxf_write_d10_audio_packet(), mxf_write_d10_video_packet(), mxf_write_opatom_packet(), mxf_write_packet(), mxg_read_packet(), mxpeg_decode_frame(), new_pes_packet(), noise(), nsv_read_packet(), nut_write_packet(), oggvorbis_decode_frame(), on2avc_decode_frame(), opus_decode_packet(), opus_get_packet_samples(), 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(), pcx_decode_frame(), pcx_encode_frame(), pix_decode_frame(), pkt_dump_internal(), pnm_decode_frame(), pnm_encode_frame(), probe_codec(), process_frame(), process_input(), process_input_packet(), prores_encode_frame(), ptx_decode_frame(), pulse_write_frame(), pulse_write_packet(), qcelp_decode_frame(), qdm2_decode_frame(), qdm2_restore_block(), qsv_decode_frame(), qsv_decode_init(), qt_rtp_parse_packet(), qtkit_read_packet(), qtrle_decode_frame(), qtrle_encode_frame(), ra144_decode_frame(), ra144_encode_frame(), ra288_decode_frame(), raw_encode(), read_access_unit(), read_frame_internal(), read_gab2_sub(), read_interval_packets(), read_packet(), read_packet_gme(), realtext_decode_frame(), recode_subtitle(), remove_extradata(), 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(), rtp_mpegts_write_packet(), rtp_write_packet(), run_test(), rv10_decode_frame(), s302m_decode_frame(), sami_decode_frame(), sbg_read_packet(), screenpresso_decode_frame(), 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(), sp5x_decode_frame(), spdif_header_dts(), spdif_header_dts4(), spdif_header_eac3(), spdif_header_truehd(), spdif_write_packet(), srt_decode_frame(), srt_write_packet(), storeframe(), str_read_packet(), submit_packet(), subviewer_decode_frame(), sunrast_decode_frame(), sunrast_encode_frame(), sup_read_packet(), 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(), text2movsub(), text_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), tmv_decode_frame(), tqi_decode_frame(), transcode_subtitles(), truemotion1_decode_frame(), truespeech_decode_frame(), try_decode_frame(), try_decode_video_frame(), tscc2_decode_frame(), tta_decode_frame(), tta_encode_frame(), twolame_encode_frame(), txd_decode_frame(), ulti_decode_frame(), utvideo_encode_frame(), v308_decode_frame(), v408_decode_frame(), v410_decode_frame(), v4l2_read_packet(), vaapi_encode_output(), 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(), video_encode_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_decode(), vp8_lossy_decode_frame(), vp9_decode_frame(), vp9_superframe_filter(), 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_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(), x11grab_read_packet(), xan_decode_frame(), xbm_decode_frame(), xbm_encode_frame(), xface_decode_frame(), xvid_encode_frame(), xvid_strip_vol_header(), xwd_decode_frame(), y216_decode_frame(), y41p_decode_frame(), yop_decode_frame(), yop_read_packet(), yuv4_decode_frame(), zero12v_decode_frame(), and zerocodec_decode_frame().

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

Definition at line 1582 of file avcodec.h.

Referenced by aac_parse_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(), cin_read_packet(), cine_read_packet(), compute_crc_of_packets(), compute_pkt_fields(), concat_read_packet(), create_subcc_packet(), dash_write_packet(), daud_packet(), dc1394_read_common(), decode_frame(), decode_packet(), drop_dups(), dsf_read_packet(), dshow_read_packet(), dss_723_1_read_packet(), dss_sp_read_packet(), dv_extract_audio_info(), dv_write_packet(), dxa_read_packet(), ea_read_packet(), encode_write_frame(), estimate_timings_from_pts(), extract_mpeg4_header(), ff_audio_rechunk_interleave(), ff_decklink_write_packet(), ff_flac_parse_picture(), ff_h263_handle_packet(), ff_id3v2_parse_apic(), ff_id3v2_write_apic(), ff_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(), ffm_read_packet(), ffm_write_packet(), fill_timing_for_id3_timestamped_stream(), film_read_packet(), find_video_stream_info(), flic_read_packet(), 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(), 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(), http_prepare_data(), ico_write_packet(), idcin_read_packet(), iff_read_packet(), ilbc_read_packet(), 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(), matroska_deliver_packet(), matroska_parse_frame(), matroska_parse_rm_audio(), matroska_parse_webvtt(), matroska_read_header(), mkv_check_bitstream(), mkv_write_block(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_vtt_blocks(), mmf_read_packet(), modplug_read_packet(), mov_create_chapter_track(), mov_create_timecode_track(), mov_read_covr(), mov_read_packet(), mov_write_packet(), mov_write_single_packet(), mov_write_subtitle_end_packet(), movie_push_frame(), mp3_read_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_read_packet_old(), mxf_set_audio_pts(), mxf_write_packet(), mxg_read_packet(), nc_read_packet(), new_pes_packet(), nsv_read_chunk(), nut_read_packet(), nut_write_packet(), nuv_packet(), ogg_read_packet(), ogg_write_packet_internal(), oma_read_packet(), packet_after_outpoint(), packet_queue_put_nullpacket(), parse_packet(), pkt_dump_internal(), pmp_packet(), prepare_input_packet(), process_frame(), process_input(), process_input_packet(), pva_read_packet(), qdm2_restore_block(), qt_rtp_parse_packet(), qtkit_read_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(), 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(), sdr2_read_packet(), seek_frame_generic(), seg_check_bitstream(), seg_write_packet(), seq_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(), 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(), yop_read_packet(), yuv4_read_packet(), and yuv4_write_packet().

int AVPacket::flags

A combination of AV_PKT_FLAG values.

Definition at line 1586 of file avcodec.h.

Referenced by a64multi_encode_frame(), aiff_read_packet(), 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_common(), decode_frame(), decode_frame_common(), dnxhd_encode_picture(), do_streamcopy(), do_video_out(), dump_extradata(), dv_extract_audio_info(), dvvideo_encode_frame(), ea_read_packet(), encode_frame(), encode_picture_ls(), encode_png(), 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_read_packet(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ff_subtitles_queue_insert(), ffm_read_packet(), ffm_write_packet(), filter_packet(), flashsv2_encode_frame(), flashsv_decode_frame(), flashsv_encode_frame(), flv_data_packet(), flv_read_packet(), flv_write_packet(), framecrc_write_packet(), get_attachment(), get_needed_flags(), gif_encode_frame(), gif_read_packet(), h263_handle_packet(), hap_encode(), hds_write_packet(), hls_read_packet(), hls_write_packet(), http_prepare_data(), idcin_read_packet(), iff_read_packet(), ism_write_packet(), libkvazaar_encode(), libopenjpeg_encode_frame(), libschroedinger_encode_frame(), libwebp_anim_encode_frame(), libwebp_encode_frame(), libx265_encode_frame(), ljpeg_encode_frame(), lmlm4_read_packet(), lvf_read_packet(), lxf_read_packet(), main(), matroska_parse_frame(), matroska_read_header(), mkv_write_packet(), mkv_write_packet_internal(), modplug_read_packet(), mov_parse_vc1_frame(), mov_read_covr(), mov_read_packet(), mov_write_single_packet(), mp3_read_packet(), mpeg_mux_write_packet(), mpegts_write_packet_internal(), msnwc_tcp_read_packet(), mux_frames(), mv_read_packet(), new_pes_packet(), nsv_read_chunk(), nut_read_packet(), nut_write_packet(), nuv_packet(), ogg_read_packet(), ogg_write_packet_internal(), oma_read_packet(), 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(), qtkit_read_packet(), qtrle_encode_frame(), raw_encode(), read_dst_frame(), read_frame(), read_frame_internal(), read_packet(), remove_extradata(), rm_write_packet(), roq_encode_frame(), rpl_read_packet(), sdr2_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(), 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(), vp8_handle_packet(), vtenc_cm_to_avpacket(), webm_clusters_start_with_keyframe(), 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().

AVPacketSideData* AVPacket::side_data
int AVPacket::side_data_elems
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 1598 of file avcodec.h.

Referenced by aac_encode_frame(), add_event(), adx_read_packet(), aiff_read_packet(), aix_read_packet(), amr_read_packet(), apng_read_packet(), aqt_read_header(), asf_write_packet(), ass_read_header(), audio_write_frame(), audio_write_packet(), av_init_packet(), av_packet_copy_props(), av_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(), cin_read_packet(), compute_pkt_fields(), convert_sub_to_old_ass_form(), dash_write_packet(), do_subtitle_out(), drop_dups(), dss_723_1_read_packet(), dss_sp_read_packet(), ea_read_packet(), encode_frame(), estimate_timings_from_pts(), Faac_encode_frame(), ff_audio_rechunk_interleave(), ff_init_buffer_info(), ff_interleave_add_packet(), ff_mov_write_packet(), ff_subtitles_queue_finalize(), ff_subtitles_queue_seek(), ff_write_chained(), ffat_encode(), ffm_read_packet(), ffm_write_packet(), fill_timing_for_id3_timestamped_stream(), flac_encode_frame(), flush(), 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(), http_prepare_data(), idcin_read_packet(), iff_read_packet(), ilbc_read_packet(), interleave_new_audio_packet(), jacosub_read_header(), libopus_encode(), libshine_encode_frame(), libvorbis_encode_frame(), log_packet(), lrc_read_header(), main(), matroska_parse_frame(), matroska_parse_webvtt(), microdvd_read_header(), microdvd_write_packet(), mkv_write_block(), mkv_write_packet_internal(), mkv_write_vtt_blocks(), mov_read_packet(), mov_write_subtitle_end_packet(), mp3lame_encode_frame(), mpc8_read_packet(), mpegts_raw_read_packet(), mpl2_read_header(), mpsub_read_header(), mux_frames(), ogg_read_packet(), ogg_write_packet_internal(), packet_queue_get(), packet_queue_put_private(), parse_file(), parse_packet(), pjs_read_header(), pkt_dump_internal(), 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(), roq_dpcm_encode_frame(), rpl_read_packet(), rsd_read_packet(), sami_read_header(), sbg_read_packet(), 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(), tee_write_packet(), thp_read_packet(), threedostr_read_packet(), tta_encode_frame(), tta_read_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_frame(), 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().

int64_t AVPacket::pos

byte position in stream, -1 if unknown

Examples:
remuxing.c.

Definition at line 1600 of file avcodec.h.

Referenced by 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(), avcodec_decode_video2(), avi_read_packet(), avpriv_dv_produce_packet(), cdxl_read_packet(), cmp_pkt_sub_pos_ts(), cmp_pkt_sub_ts_pos(), create_subcc_packet(), decode_frame(), dss_723_1_read_packet(), dss_sp_read_packet(), ff_img_read_packet(), ff_init_buffer_info(), ff_raw_read_partial_packet(), ff_spdif_read_packet(), ffm_read_packet(), flic_read_packet(), fourxm_read_packet(), fsb_read_packet(), g723_1_read_packet(), g729_read_packet(), gsm_read_packet(), iff_read_packet(), ilbc_read_packet(), ivr_read_packet(), jacosub_read_header(), lavfi_read_packet(), load_ipmovie_packet(), lrc_read_header(), lvf_read_packet(), main(), matroska_parse_frame(), matroska_parse_rm_audio(), matroska_parse_webvtt(), microdvd_read_header(), mov_read_packet(), mpegps_read_packet(), mpegts_get_dts(), mpegts_raw_read_packet(), mpjpeg_read_packet(), mpl2_read_header(), mpsub_read_header(), mtv_read_packet(), mxf_read_packet_old(), new_pes_packet(), nut_read_packet(), nuv_packet(), ogg_read_packet(), parse_file(), parse_packet(), pjs_read_header(), 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(), sami_read_header(), sdr2_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(), vmd_read_packet(), vplayer_read_header(), vqf_read_packet(), webvtt_read_header(), wv_read_packet(), and yop_read_packet().

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 1609 of file avcodec.h.

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


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