Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -796,7 +796,7 @@ int ff_qsvvpp_filter_frame(QSVVPPContext *s, AVFilterLink *inlink, AVFrame *picr · 795 unmodified lines | ||
| 796 | 796 | AVFilterLink *outlink = ctx->outputs[0]; |
| 797 | 797 | QSVAsyncFrame aframe; |
| 798 | 798 | mfxSyncPoint sync; |
| 799 | − QSVFrame *in_frame, *out_frame, *tmp; | |
| 799 | + QSVFrame *in_frame, *out_frame; | |
| 800 | 800 | int ret, filter_ret; |
| 801 | 801 | |
| 802 | 802 | 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 | ||
| 857 | 857 | ret = MFXVideoCORE_SyncOperation(s->session, aframe.sync, 1000); |
| 858 | 858 | } while (ret == MFX_WRN_IN_EXECUTION); |
| 859 | 859 | |
| 860 | − filter_ret = s->filter_frame(outlink, tmp->frame); | |
| 860 | + filter_ret = s->filter_frame(outlink, aframe.frame->frame); | |
| 861 | 861 | if (filter_ret < 0) { |
| 862 | − av_frame_free(&tmp->frame); | |
| 862 | + av_frame_free(&aframe.frame->frame); | |
| 863 | 863 | return filter_ret; |
| 864 | 864 | } |
| 865 | 865 | |
| 866 | − tmp->queued--; | |
| 866 | + aframe.frame->queued--; | |
| 867 | 867 | s->got_frame = 1; |
| 868 | − tmp->frame = NULL; | |
| 868 | + aframe.frame->frame = NULL; | |
| 869 | 869 | } |
| 870 | 870 | } while(ret == MFX_ERR_MORE_SURFACE); |
| 871 | 871 | |