diff --git a/libavcodec/h264_mp4toannexb_bsf.c b/libavcodec/h264_mp4toannexb_bsf.c
index e7f2e7ab04628f248a054849922021455058c165..df49b348104e9b17d67a6b458b1d62845a10d4d5 100644
--- a/libavcodec/h264_mp4toannexb_bsf.c
+++ b/libavcodec/h264_mp4toannexb_bsf.c
@@ -92,9 +92,7 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
 
             if (unit_nb)
                 pps_seen = 1;
-        }
-        else
-        {
+        } else {
             sps_seen = 1;
         }