History

ffplay, avcodec, avformat: Don't initialize before av_packet_ref()

It already initializes the packet.

Andreas Rheinhardt committed 6 years ago

Commit 33623301 parent c52ec036 files · +7 −9Browse files

Showing the changes to libavcodec (2 of 6 files). Show all

Unified · Split

2 files
  1. libavcodec/qsvdec_h2645.c +1 −1
  2. libavcodec/qsvdec_other.c +1 −1
libavcodec/qsvdec_h2645.c+1−1
@@ -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,
libavcodec/qsvdec_other.c+1−1
@@ -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,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t