OSDN Git Service

Remove incorrect return statement from avcodec_thread_free()
authorMans Rullgard <mans@mansr.com>
Thu, 10 Feb 2011 12:21:19 +0000 (12:21 +0000)
committerMans Rullgard <mans@mansr.com>
Thu, 10 Feb 2011 14:17:24 +0000 (14:17 +0000)
The function return type is void, so a return statement with an
expression is forbidden (and pointless).

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/utils.c

index 03018b8..c4bba37 100644 (file)
@@ -1298,7 +1298,7 @@ int avcodec_thread_init(AVCodecContext *s, int thread_count)
 void avcodec_thread_free(AVCodecContext *s)
 {
 #if HAVE_THREADS
-    return ff_thread_free(s);
+    ff_thread_free(s);
 #endif
 }