[FFmpeg-cvslog] avfilter/vf_xfade: check default switch case

Paul B Mahol git at videolan.org
Sun Sep 12 16:06:49 EEST 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 12 15:04:31 2021 +0200| [c4973e2148b03210c887496aa2b2ffd8b1ab6319] | committer: Paul B Mahol

avfilter/vf_xfade: check default switch case

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

 libavfilter/vf_xfade.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_xfade.c b/libavfilter/vf_xfade.c
index 4d431b0754..eff8a8b854 100644
--- a/libavfilter/vf_xfade.c
+++ b/libavfilter/vf_xfade.c
@@ -1825,6 +1825,7 @@ static int config_output(AVFilterLink *outlink)
     case SQUEEZEH:   s->transitionf = s->depth <= 8 ? squeezeh8_transition   : squeezeh16_transition;   break;
     case SQUEEZEV:   s->transitionf = s->depth <= 8 ? squeezev8_transition   : squeezev16_transition;   break;
     case ZOOMIN:     s->transitionf = s->depth <= 8 ? zoomin8_transition     : zoomin16_transition;     break;
+    default: return AVERROR_BUG;
     }
 
     if (s->transition == CUSTOM) {



More information about the ffmpeg-cvslog mailing list