[FFmpeg-cvslog] avformat/rtpdec_hevc: Fix 2 "may be used uninitialized in this function" warnings

Michael Niedermayer git at videolan.org
Sat Jan 17 20:53:06 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jan 17 20:27:31 2015 +0100| [4adf75cade6905f33baeeaca559013467dc7d1ae] | committer: Michael Niedermayer

avformat/rtpdec_hevc: Fix 2 "may be used uninitialized in this function" warnings

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/rtpdec_hevc.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavformat/rtpdec_hevc.c b/libavformat/rtpdec_hevc.c
index ac4c765..3926614 100644
--- a/libavformat/rtpdec_hevc.c
+++ b/libavformat/rtpdec_hevc.c
@@ -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];



More information about the ffmpeg-cvslog mailing list