[FFmpeg-cvslog] swr: correctly raise rematrix AVERROR.

Clément Bœsch git at videolan.org
Thu Nov 17 17:57:58 CET 2011


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Nov 17 11:20:50 2011 +0100| [acd56efbeb1a436403b3da07552922e49a721081] | committer: Clément Bœsch

swr: correctly raise rematrix AVERROR.

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

 libswresample/swresample.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index 2e8020d..6c6482a 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -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;
 }



More information about the ffmpeg-cvslog mailing list