[FFmpeg-cvslog] buffersrc: switch to filter_frame
Anton Khirnov
git at videolan.org
Thu Nov 29 01:56:03 CET 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Nov 29 01:51:31 2012 +0100| [60e50dd96023bb44816592937c10e13a3ceded67] | committer: Michael Niedermayer
buffersrc: switch to filter_frame
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=60e50dd96023bb44816592937c10e13a3ceded67
---
libavfilter/buffersrc.c | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index cb47747..7949098 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;
}
More information about the ffmpeg-cvslog
mailing list