Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-11-29 04:51:31 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-11-29 04:55:26 +0400
commit60e50dd96023bb44816592937c10e13a3ceded67 (patch)
tree9f8a77dbf3838498a3f78bc4245755ca2cc9afac /libavfilter/buffersrc.c
parentb5ecfa1d8d8d45f1f5924e192566c0a065b270a0 (diff)
buffersrc: switch to filter_frame
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/buffersrc.c')
-rw-r--r--libavfilter/buffersrc.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index cb47747343..7949098c84 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -371,20 +371,7 @@ static int request_frame(AVFilterLink *link)
}
av_fifo_generic_read(c->fifo, &buf, sizeof(buf), NULL);
- switch (link->type) {
- 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);
- }
+ ff_filter_frame(link, buf);
return ret;
}