[FFmpeg-cvslog] lavfi/stereo3d: remove pointless store

Paul B Mahol git at videolan.org
Tue Apr 16 23:18:04 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Apr 16 21:05:37 2013 +0000| [83253431b716f085f6ad82e2fcefe8ccb2d73130] | committer: Paul B Mahol

lavfi/stereo3d: remove pointless store

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=83253431b716f085f6ad82e2fcefe8ccb2d73130
---

 libavfilter/vf_stereo3d.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/libavfilter/vf_stereo3d.c b/libavfilter/vf_stereo3d.c
index c7f39e6..aaa74a3 100644
--- a/libavfilter/vf_stereo3d.c
+++ b/libavfilter/vf_stereo3d.c
@@ -332,7 +332,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
     AVFrame *out;
     int out_off_left, out_off_right;
     int in_off_left, in_off_right;
-    int ret;
 
     out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
     if (!out) {
@@ -414,18 +413,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
         av_assert0(0);
     }
 
-    ret = ff_filter_frame(outlink, out);
     av_frame_free(&inpicref);
-    if (ret < 0)
-        return ret;
-    return 0;
+    return ff_filter_frame(outlink, out);
 }
 
 static const AVFilterPad stereo3d_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }



More information about the ffmpeg-cvslog mailing list