mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
buffersrc: switch to filter_frame
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b5ecfa1d8d
commit
60e50dd960
@ -371,20 +371,7 @@ static int request_frame(AVFilterLink *link)
|
|||||||
}
|
}
|
||||||
av_fifo_generic_read(c->fifo, &buf, sizeof(buf), NULL);
|
av_fifo_generic_read(c->fifo, &buf, sizeof(buf), NULL);
|
||||||
|
|
||||||
switch (link->type) {
|
ff_filter_frame(link, buf);
|
||||||
case AVMEDIA_TYPE_VIDEO:
|
|
||||||
if ((ret = ff_start_frame(link, buf)) < 0 ||
|
|
||||||
(ret = ff_draw_slice(link, 0, link->h, 1)) < 0 ||
|
|
||||||
(ret = ff_end_frame(link)) < 0)
|
|
||||||
return ret;
|
|
||||||
break;
|
|
||||||
case AVMEDIA_TYPE_AUDIO:
|
|
||||||
ret = ff_filter_frame(link, buf);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
avfilter_unref_bufferp(&buf);
|
|
||||||
return AVERROR(EINVAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user