]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ffjni.c
escape124: reject codebook size 0
[ffmpeg] / libavcodec / ffjni.c
index 13eabb00337b909e7d61a0bbba4854a207b55332..3f4c3806730df1016f5a666a23e7d9e81ff01cee 100644 (file)
@@ -224,7 +224,7 @@ int ff_jni_exception_get_summary(JNIEnv *env, jthrowable exception, char **error
     } else if (!name && message) {
         av_bprintf(&bp, "Exception: %s", message);
     } else {
-        av_log(log_ctx, AV_LOG_WARNING, "Could not retreive exception name and message\n");
+        av_log(log_ctx, AV_LOG_WARNING, "Could not retrieve exception name and message\n");
         av_bprintf(&bp, "Exception occurred");
     }
 
@@ -352,6 +352,8 @@ int ff_jni_init_jfields(JNIEnv *env, void *jfields, const struct FFJniField *jfi
                 ret = AVERROR(EINVAL);
                 goto done;
             }
+
+            ret = 0;
         }
     }