Browse Source

Merge commit 'd3cfd7aff86ee3d449ca68aba21d67b9b2136a9b'

* commit 'd3cfd7aff86ee3d449ca68aba21d67b9b2136a9b':
  af_compand: make sure request_frame always outputs at least one frame

See: 6b68e2a43b
Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
e1f729d977
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      libavfilter/af_compand.c

+ 8
- 2
libavfilter/af_compand.c View File

@@ -278,7 +278,13 @@ static int compand_delay(AVFilterContext *ctx, AVFrame *frame)
s->delay_index = dindex; s->delay_index = dindex;


av_frame_free(&frame); av_frame_free(&frame);
return out_frame ? ff_filter_frame(ctx->outputs[0], out_frame) : 0;

if (out_frame) {
err = ff_filter_frame(ctx->outputs[0], out_frame);
return err;
}

return 0;
} }


static int compand_drain(AVFilterLink *outlink) static int compand_drain(AVFilterLink *outlink)
@@ -534,7 +540,7 @@ static int request_frame(AVFilterLink *outlink)
{ {
AVFilterContext *ctx = outlink->src; AVFilterContext *ctx = outlink->src;
CompandContext *s = ctx->priv; CompandContext *s = ctx->priv;
int ret;
int ret = 0;


ret = ff_request_frame(ctx->inputs[0]); ret = ff_request_frame(ctx->inputs[0]);




Loading…
Cancel
Save