diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-12-14 14:58:21 +0400 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-12-15 14:46:30 +0400 |
commit | 96d815fc0c71d08b9c4bd65aea021bd0760f2287 (patch) | |
tree | 5604c1d6956389eb5ca732febb983960cfd50792 /libavcodec/avcodec.h | |
parent | a8b3f0c5cf548f654e30c981988bb71981a3f8d3 (diff) |
lavc: add pkt_size field to AVFrame
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index e432040b1d..5865aa3a7e 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1467,6 +1467,16 @@ typedef struct AVFrame { * - decoding: Read by user. */ int64_t channels; + + /** + * size of the corresponding packet containing the compressed + * frame. It must be accessed using av_frame_get_pkt_size() and + * av_frame_set_pkt_size(). + * It is set to a negative value if unknown. + * - encoding: unused + * - decoding: set by libavcodec, read by user. + */ + int pkt_size; } AVFrame; /** @@ -1490,6 +1500,8 @@ AVDictionary *av_frame_get_metadata (const AVFrame *frame); void av_frame_set_metadata (AVFrame *frame, AVDictionary *val); int av_frame_get_decode_error_flags (const AVFrame *frame); void av_frame_set_decode_error_flags (AVFrame *frame, int val); +int av_frame_get_pkt_size(const AVFrame *frame); +void av_frame_set_pkt_size(AVFrame *frame, int val); struct AVCodecInternal; |