mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-03 22:50:36 +00:00
lavc: add pkt_duration field to AVFrame
This commit is contained in:
@@ -1277,6 +1277,15 @@ typedef struct AVFrame {
|
||||
*/
|
||||
int64_t pkt_pos;
|
||||
|
||||
/**
|
||||
* duration of the corresponding packet, expressed in
|
||||
* AVStream->time_base units, 0 if unknown.
|
||||
* Code outside libavcodec should access this field using:
|
||||
* av_frame_get_pkt_duration(frame)
|
||||
* - encoding: unused
|
||||
* - decoding: Read by user.
|
||||
*/
|
||||
int64_t pkt_duration;
|
||||
} AVFrame;
|
||||
|
||||
/**
|
||||
@@ -1285,10 +1294,12 @@ typedef struct AVFrame {
|
||||
* they should not be accessed directly outside libavcodec.
|
||||
*/
|
||||
int64_t av_frame_get_best_effort_timestamp(const AVFrame *frame);
|
||||
int64_t av_frame_get_pkt_duration (const AVFrame *frame);
|
||||
int64_t av_frame_get_pkt_pos (const AVFrame *frame);
|
||||
int64_t av_frame_get_channel_layout (const AVFrame *frame);
|
||||
int av_frame_get_sample_rate (const AVFrame *frame);
|
||||
void av_frame_set_best_effort_timestamp(AVFrame *frame, int64_t val);
|
||||
void av_frame_set_pkt_duration (AVFrame *frame, int64_t val);
|
||||
void av_frame_set_pkt_pos (AVFrame *frame, int64_t val);
|
||||
void av_frame_set_channel_layout (AVFrame *frame, int64_t val);
|
||||
void av_frame_set_sample_rate (AVFrame *frame, int val);
|
||||
|
||||
Reference in New Issue
Block a user