History

avfilter/copy: add forgotten check

Paul B Mahol committed 7 years ago

Commit 94b155e1 parent 9cee8972 files · +6 −2Browse files

Showing the changes to libavfilter (2 of 2 files). Show all

Unified · Split

2 files
  1. libavfilter/af_acopy.c +3 −1
  2. libavfilter/vf_copy.c +3 −1
libavfilter/af_acopy.c+3−1
@@ -26,8 +26,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 25 unmodified lines
26 AVFrame *out = ff_get_audio_buffer(outlink, in->nb_samples);26 AVFrame *out = ff_get_audio_buffer(outlink, in->nb_samples);
27 int ret;27 int ret;
28 28
29 if (!out)29 if (!out) {
30 ret = AVERROR(ENOMEM);30 ret = AVERROR(ENOMEM);
31 goto fail;
32 }
31 33
32 ret = av_frame_copy_props(out, in);34 ret = av_frame_copy_props(out, in);
33 if (ret < 0)35 if (ret < 0)
libavfilter/vf_copy.c+3−1
@@ -50,8 +50,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 49 unmodified lines
50 AVFrame *out = ff_get_video_buffer(outlink, in->width, in->height);50 AVFrame *out = ff_get_video_buffer(outlink, in->width, in->height);
51 int ret;51 int ret;
52 52
53 if (!out)53 if (!out) {
54 ret = AVERROR(ENOMEM);54 ret = AVERROR(ENOMEM);
55 goto fail;
56 }
55 57
56 ret = av_frame_copy_props(out, in);58 ret = av_frame_copy_props(out, in);
57 if (ret < 0)59 if (ret < 0)

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