diff options
author | James Almer <jamrial@gmail.com> | 2020-08-17 12:06:55 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-09-15 09:53:39 -0300 |
commit | 022a12b306ab2096e6ac9fc9b149828a849d65b2 (patch) | |
tree | a2936a6d547438d3664784dc5d0c3eb12f1e6929 /libavcodec/internal.h | |
parent | 8a81820624ada4d339aeb2150ad5c2b36b12860c (diff) | |
download | ffmpeg-022a12b306ab2096e6ac9fc9b149828a849d65b2.tar.gz |
avcodec/decode: use a packet list to store packet properties
Keeping only the latest packet fed to the decoder works only for decoders that
return a frame immediately after every consumed packet. Decoders that consume
several packets before they return a frame will fill said frame with properties
taken from the last consumed packet instead of the earliest.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 5d0e6e7831..ce4dbbc2b9 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -145,6 +145,8 @@ typedef struct AVCodecInternal { * for decoding. */ AVPacket *last_pkt_props; + AVPacketList *pkt_props; + AVPacketList *pkt_props_tail; /** * temporary buffer used for encoders to store their bitstream |