avfilter/avf_ahistogram: assert that variables are initialized by switch()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 11 Feb 2016 23:37:11 +0000 (00:37 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 11 Feb 2016 23:38:45 +0000 (00:38 +0100)
Silences: CID1351397

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/avf_ahistogram.c

index 55f7462..a716a96 100644 (file)
@@ -297,6 +297,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
                 if (aa == 1.)
                     aa = 0;
                 break;
+            default:
+                av_assert0(0);
             }
 
             h = aa * (H - 1);