Unified · Split
| @@ -279,7 +279,11 @@ static AVFrame *blend_frame(AVFilterContext *ctx, AVFrame *top_buf, · 278 unmodified lines | |||
| 279 | dst_buf = ff_get_video_buffer(outlink, outlink->w, outlink->h); | 279 | dst_buf = ff_get_video_buffer(outlink, outlink->w, outlink->h); |
| 280 | if (!dst_buf) | 280 | if (!dst_buf) |
| 281 | return top_buf; | 281 | return top_buf; |
| 282 | av_frame_copy_props(dst_buf, top_buf); | 282 | |
| 283 | if (av_frame_copy_props(dst_buf, top_buf) < 0) { | ||
| 284 | av_frame_free(&dst_buf); | ||
| 285 | return top_buf; | ||
| 286 | } | ||
| 283 | 287 | ||
| 284 | for (plane = 0; plane < s->nb_planes; plane++) { | 288 | for (plane = 0; plane < s->nb_planes; plane++) { |
| 285 | int hsub = plane == 1 || plane == 2 ? s->hsub : 0; | 289 | int hsub = plane == 1 || plane == 2 ? s->hsub : 0; |