swr: correctly raise rematrix AVERROR.

This commit is contained in:
Clément Bœsch 2011-11-17 11:20:50 +01:00
parent 31ec694771
commit acd56efbeb
1 changed files with 2 additions and 2 deletions

View File

@ -239,8 +239,8 @@ av_assert0(s->out.ch_count);
s->in_buffer.planar = s->postin.planar = s->midbuf.planar = s->preout.planar = 1;
if(s->rematrix && swri_rematrix_init(s)<0)
return -1;
if(s->rematrix)
return swri_rematrix_init(s);
return 0;
}