avformat/rtpdec_hevc: Fix 2 "may be used uninitialized in this function" warnings
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 17 Jan 2015 19:27:31 +0000 (20:27 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 17 Jan 2015 19:40:21 +0000 (20:40 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rtpdec_hevc.c

index ac4c7656d4abb714af81c024d3b5540c388cfb8f..3926614dae575869a5298be21641616f64c90690 100644 (file)
@@ -20,6 +20,7 @@
  *
  */
 
+#include "libavutil/avassert.h"
 #include "libavutil/avstring.h"
 #include "libavutil/base64.h"
 
@@ -104,7 +105,8 @@ static av_cold int hevc_sdp_parse_fmtp_config(AVFormatContext *s,
         } else if (!strcmp(attr, "sprop-sei")) {
             data_ptr = &hevc_data->sei;
             size_ptr = &hevc_data->sei_size;
-        }
+        } else
+            av_assert0(0);
 
         while (*value) {
             char base64packet[1024];