aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qsvdec_h2645.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-12-01 10:04:02 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-28 04:17:20 +0100
commit33623307417c8d1d38768eae61024a5bb879bd86 (patch)
tree997f6d3b72ac2351ca58d9f6798ca7f0bff34d28 /libavcodec/qsvdec_h2645.c
parentc52ec0367de10f86ceb5a06d25c0f948a5897740 (diff)
downloadffmpeg-33623307417c8d1d38768eae61024a5bb879bd86.tar.gz
ffplay, avcodec, avformat: Don't initialize before av_packet_ref()
It already initializes the packet. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/qsvdec_h2645.c')
-rw-r--r--libavcodec/qsvdec_h2645.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qsvdec_h2645.c b/libavcodec/qsvdec_h2645.c
index 730feed20a..02c41883b6 100644
--- a/libavcodec/qsvdec_h2645.c
+++ b/libavcodec/qsvdec_h2645.c
@@ -125,7 +125,7 @@ static int qsv_decode_frame(AVCodecContext *avctx, void *data,
/* buffer the input packet */
if (avpkt->size) {
- AVPacket input_ref = { 0 };
+ AVPacket input_ref;
if (av_fifo_space(s->packet_fifo) < sizeof(input_ref)) {
ret = av_fifo_realloc2(s->packet_fifo,