summaryrefslogtreecommitdiff
path: root/libavcodec
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
parentc52ec0367de10f86ceb5a06d25c0f948a5897740 (diff)
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')
-rw-r--r--libavcodec/qsvdec_h2645.c2
-rw-r--r--libavcodec/qsvdec_other.c2
2 files changed, 2 insertions, 2 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,
diff --git a/libavcodec/qsvdec_other.c b/libavcodec/qsvdec_other.c
index ff2834c20b..b4df76739c 100644
--- a/libavcodec/qsvdec_other.c
+++ b/libavcodec/qsvdec_other.c
@@ -123,7 +123,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,