FFmpeg 9.0
Loading...
Searching...
No Matches

Data Structures

struct  AVCodecParameters
 This struct describes the properties of an encoded stream. More...
AVCodecParametersavcodec_parameters_alloc (void)
 Allocate a new AVCodecParameters and set its fields to default values (unknown/invalid/0).
void avcodec_parameters_free (AVCodecParameters **par)
 Free an AVCodecParameters instance and everything associated with it and write NULL to the supplied pointer.
int avcodec_parameters_copy (AVCodecParameters *dst, const AVCodecParameters *src)
 Copy the contents of src to dst.
int av_get_audio_frame_duration2 (AVCodecParameters *par, int frame_bytes)
 This function is the same as av_get_audio_frame_duration(), except it works with AVCodecParameters instead of an AVCodecContext.

Detailed Description

Function Documentation

◆ avcodec_parameters_alloc()

AVCodecParameters * avcodec_parameters_alloc ( void )
related

Allocate a new AVCodecParameters and set its fields to default values (unknown/invalid/0).

The returned struct must be freed with ::avcodec_parameters_free().

◆ avcodec_parameters_free()

void avcodec_parameters_free ( AVCodecParameters ** par)
related

Free an AVCodecParameters instance and everything associated with it and write NULL to the supplied pointer.

◆ avcodec_parameters_copy()

int avcodec_parameters_copy ( AVCodecParameters * dst,
const AVCodecParameters * src )
related

Copy the contents of src to dst.

Any allocated fields in dst are freed and replaced with newly allocated duplicates of the corresponding fields in src.

Returns
>= 0 on success, a negative AVERROR code on failure.

◆ av_get_audio_frame_duration2()

int av_get_audio_frame_duration2 ( AVCodecParameters * par,
int frame_bytes )
related

This function is the same as av_get_audio_frame_duration(), except it works with AVCodecParameters instead of an AVCodecContext.