diff options
author | James Almer <jamrial@gmail.com> | 2021-01-29 19:09:18 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-03-17 15:19:38 -0300 |
commit | 82bd02a2c73bb5e6b7cf5e5eba486e279f1a7358 (patch) | |
tree | 52cbd52b54161fda5e1eddf844a0c0174d8c98f5 /fftools/ffmpeg.h | |
parent | 4aa586944e81c523c66ea04bb4c7b59bf1d0d09f (diff) | |
download | ffmpeg-82bd02a2c73bb5e6b7cf5e5eba486e279f1a7358.tar.gz |
fftools/ffmpeg: use av_packet_alloc() to allocate packets
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r-- | fftools/ffmpeg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 8813eaf2e3..606f2afe0c 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -310,6 +310,7 @@ typedef struct InputStream { const AVCodec *dec; AVFrame *decoded_frame; AVFrame *filter_frame; /* a ref of decoded_frame, to be sent to filters */ + AVPacket *pkt; int64_t start; /* time when read started */ /* predicted dts of the next packet read for this stream or (when there are @@ -418,6 +419,8 @@ typedef struct InputFile { int rate_emu; int accurate_seek; + AVPacket *pkt; + #if HAVE_THREADS AVThreadMessageQueue *in_thread_queue; pthread_t thread; /* thread reading from this file */ @@ -474,6 +477,7 @@ typedef struct OutputStream { int64_t max_frames; AVFrame *filtered_frame; AVFrame *last_frame; + AVPacket *pkt; int last_dropped; int last_nb0_frames[3]; |