It already initializes the packet.
Showing the changes to libavcodec (2 of 6 files). Show all
Unified · Split
| @@ -125,7 +125,7 @@ static int qsv_decode_frame(AVCodecContext *avctx, void *data, · 124 unmodified lines | ||
| 125 | 125 | |
| 126 | 126 | /* buffer the input packet */ |
| 127 | 127 | if (avpkt->size) { |
| 128 | − AVPacket input_ref = { 0 }; | |
| 128 | + AVPacket input_ref; | |
| 129 | 129 | |
| 130 | 130 | if (av_fifo_space(s->packet_fifo) < sizeof(input_ref)) { |
| 131 | 131 | ret = av_fifo_realloc2(s->packet_fifo, |
| @@ -123,7 +123,7 @@ static int qsv_decode_frame(AVCodecContext *avctx, void *data, · 122 unmodified lines | ||
| 123 | 123 | |
| 124 | 124 | /* buffer the input packet */ |
| 125 | 125 | if (avpkt->size) { |
| 126 | − AVPacket input_ref = { 0 }; | |
| 126 | + AVPacket input_ref; | |
| 127 | 127 | |
| 128 | 128 | if (av_fifo_space(s->packet_fifo) < sizeof(input_ref)) { |
| 129 | 129 | ret = av_fifo_realloc2(s->packet_fifo, |