diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-03-08 15:22:53 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-06-05 18:42:17 +0200 |
commit | 62b39d41cdec2be4e4722aefbd7789305e4ab2ad (patch) | |
tree | 68b4abafa19f29df11acb9bd6f10f7a3720ce274 /libavcodec/avcodec.h | |
parent | 0da9bce5a317a8a5ce4f8ed72c460ff929bf5c8e (diff) | |
download | ffmpeg-62b39d41cdec2be4e4722aefbd7789305e4ab2ad.tar.gz |
lavc: add pkt_duration field to AVFrame
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 96ca401c2f..e61aabcb72 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -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); |