Unified · Split
| @@ -441,7 +441,10 @@ static QSVFrame *submit_frame(QSVVPPContext *s, AVFilterLink *inlink, AVFrame *p · 440 unmodified lines | |||
| 441 | return NULL; | 441 | return NULL; |
| 442 | } | 442 | } |
| 443 | 443 | ||
| 444 | av_frame_copy_props(qsv_frame->frame, picref); | 444 | if (av_frame_copy_props(qsv_frame->frame, picref) < 0) { |
| 445 | av_frame_free(&qsv_frame->frame); | ||
| 446 | return NULL; | ||
| 447 | } | ||
| 445 | } else | 448 | } else |
| 446 | qsv_frame->frame = av_frame_clone(picref); | 449 | qsv_frame->frame = av_frame_clone(picref); |
| 447 | 450 | ||