h264_metadata: Actually fail when sei_user_data option is invalid
authorMark Thompson <sw@jkqxz.net>
Tue, 6 Mar 2018 23:39:00 +0000 (23:39 +0000)
committerMark Thompson <sw@jkqxz.net>
Tue, 6 Mar 2018 23:44:07 +0000 (23:44 +0000)
libavcodec/h264_metadata_bsf.c

index 89bdedf..466823c 100644 (file)
@@ -345,6 +345,7 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *out)
             av_log(bsf, AV_LOG_ERROR, "Invalid user data: "
                    "must be \"UUID+string\".\n");
             err = AVERROR(EINVAL);
+            goto fail;
         }
     }