Unified · Split
| @@ -774,6 +774,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) · 773 unmodified lines | |||
| 774 | 774 | ||
| 775 | /* push one video frame */ | 775 | /* push one video frame */ |
| 776 | if (ebur128->do_video) { | 776 | if (ebur128->do_video) { |
| 777 | AVFrame *clone; | ||
| 777 | int x, y, ret; | 778 | int x, y, ret; |
| 778 | uint8_t *p; | 779 | uint8_t *p; |
| 779 | double gauge_value; | 780 | double gauge_value; |
| @@ -823,7 +824,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) · 43 unmodified lines | |||
| 823 | 824 | ||
| 824 | /* set pts and push frame */ | 825 | /* set pts and push frame */ |
| 825 | pic->pts = pts; | 826 | pic->pts = pts; |
| 826 | ret = ff_filter_frame(outlink, av_frame_clone(pic)); | 827 | clone = av_frame_clone(pic); |
| 828 | if (!clone) | ||
| 829 | return AVERROR(ENOMEM); | ||
| 830 | ret = ff_filter_frame(outlink, clone); | ||
| 827 | if (ret < 0) | 831 | if (ret < 0) |
| 828 | return ret; | 832 | return ret; |
| 829 | } | 833 | } |