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 | /* buffer the input packet */ | 126 | /* buffer the input packet */ |
| 127 | if (avpkt->size) { | 127 | if (avpkt->size) { |
| 128 | AVPacket input_ref = { 0 }; | 128 | AVPacket input_ref; |
| 129 | 129 | ||
| 130 | if (av_fifo_space(s->packet_fifo) < sizeof(input_ref)) { | 130 | if (av_fifo_space(s->packet_fifo) < sizeof(input_ref)) { |
| 131 | ret = av_fifo_realloc2(s->packet_fifo, | 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 | /* buffer the input packet */ | 124 | /* buffer the input packet */ |
| 125 | if (avpkt->size) { | 125 | if (avpkt->size) { |
| 126 | AVPacket input_ref = { 0 }; | 126 | AVPacket input_ref; |
| 127 | 127 | ||
| 128 | if (av_fifo_space(s->packet_fifo) < sizeof(input_ref)) { | 128 | if (av_fifo_space(s->packet_fifo) < sizeof(input_ref)) { |
| 129 | ret = av_fifo_realloc2(s->packet_fifo, | 129 | ret = av_fifo_realloc2(s->packet_fifo, |