Merge commit '549d0bdca53af7a6e0c612ab4b03baecf3a5878f'

* commit '549d0bdca53af7a6e0c612ab4b03baecf3a5878f':
  decode: be more explicit about storing the last packet properties

Also copy pkt->size in extract_packet_props(), as it's needed for
AVFrame.pkt_size

Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2017-04-22 20:06:47 -03:00
5 changed files with 41 additions and 25 deletions

View File

@@ -138,10 +138,10 @@ typedef struct AVCodecInternal {
void *thread_ctx;
/**
* Current packet as passed into the decoder, to avoid having to pass the
* packet into every function.
* Properties (timestamps+side data) extracted from the last packet passed
* for decoding.
*/
const AVPacket *pkt;
AVPacket *last_pkt_props;
/**
* temporary buffer used for encoders to store their bitstream