History

lavfi/qsvpp: fix after 85c938fa28

Anton Khirnov committed 4 years ago

Commit aeaefc31 parent 8b494361 file · +5 −5Browse files

Unified · Split

libavfilter/qsvvpp.c+5−5
@@ -796,7 +796,7 @@ int ff_qsvvpp_filter_frame(QSVVPPContext *s, AVFilterLink *inlink, AVFrame *picr · 795 unmodified lines
796796 AVFilterLink *outlink = ctx->outputs[0];
797797 QSVAsyncFrame aframe;
798798 mfxSyncPoint sync;
799− QSVFrame *in_frame, *out_frame, *tmp;
799+ QSVFrame *in_frame, *out_frame;
800800 int ret, filter_ret;
801801
802802 while (s->eof && av_fifo_read(s->async_fifo, &aframe, 1) >= 0) {
@@ -857,15 +857,15 @@ int ff_qsvvpp_filter_frame(QSVVPPContext *s, AVFilterLink *inlink, AVFrame *picr · 54 unmodified lines
857857 ret = MFXVideoCORE_SyncOperation(s->session, aframe.sync, 1000);
858858 } while (ret == MFX_WRN_IN_EXECUTION);
859859
860− filter_ret = s->filter_frame(outlink, tmp->frame);
860+ filter_ret = s->filter_frame(outlink, aframe.frame->frame);
861861 if (filter_ret < 0) {
862− av_frame_free(&tmp->frame);
862+ av_frame_free(&aframe.frame->frame);
863863 return filter_ret;
864864 }
865865
866− tmp->queued--;
866+ aframe.frame->queued--;
867867 s->got_frame = 1;
868− tmp->frame = NULL;
868+ aframe.frame->frame = NULL;
869869 }
870870 } while(ret == MFX_ERR_MORE_SURFACE);
871871

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