]> git.sesse.net Git - ffmpeg/commit
avcodec/decode: use a packet list to store packet properties
authorJames Almer <jamrial@gmail.com>
Mon, 17 Aug 2020 15:06:55 +0000 (12:06 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 15 Sep 2020 12:53:39 +0000 (09:53 -0300)
commit022a12b306ab2096e6ac9fc9b149828a849d65b2
treea2936a6d547438d3664784dc5d0c3eb12f1e6929
parent8a81820624ada4d339aeb2150ad5c2b36b12860c
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>
libavcodec/decode.c
libavcodec/internal.h
libavcodec/utils.c