]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpjpegdec.c
Merge commit 'f1ccd076801444ab7f524cb13e0886faaf10fd50'
[ffmpeg] / libavformat / mpjpegdec.c
index 3429d1907a2f918795f495b6a309c9ad1340048c..dd31f87d69f6a01bdc00ee46689d72979a33c841 100644 (file)
@@ -260,8 +260,10 @@ static char* mpjpeg_get_boundary(AVIOContext* pb)
     start = mime_type;
     while (start != NULL && *start != '\0') {
         start = strchr(start, ';');
-        if (start)
-            start = start+1;
+        if (!start)
+            break;
+
+        start = start+1;
 
         while (av_isspace(*start))
             start++;