Browse code

lavfi/stereo3d: remove pointless store

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

Paul B Mahol authored on 2013/04/17 06:05:37
Showing 1 changed files
... ...
@@ -332,7 +332,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
332 332
     AVFrame *out;
333 333
     int out_off_left, out_off_right;
334 334
     int in_off_left, in_off_right;
335
-    int ret;
336 335
 
337 336
     out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
338 337
     if (!out) {
... ...
@@ -414,18 +413,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
414 414
         av_assert0(0);
415 415
     }
416 416
 
417
-    ret = ff_filter_frame(outlink, out);
418 417
     av_frame_free(&inpicref);
419
-    if (ret < 0)
420
-        return ret;
421
-    return 0;
418
+    return ff_filter_frame(outlink, out);
422 419
 }
423 420
 
424 421
 static const AVFilterPad stereo3d_inputs[] = {
425 422
     {
426 423
         .name             = "default",
427 424
         .type             = AVMEDIA_TYPE_VIDEO,
428
-        .get_video_buffer = ff_null_get_video_buffer,
429 425
         .filter_frame     = filter_frame,
430 426
     },
431 427
     { NULL }