[FFmpeg-cvslog] Remove incorrect return statement from avcodec_thread_free()

Mans Rullgard git
Fri Feb 11 03:52:13 CET 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Feb 10 12:21:19 2011 +0000| [952f231588c18cd1a95e001c517f2d529017363f] | committer: Michael Niedermayer

Remove incorrect return statement from avcodec_thread_free()

The function return type is void, so a return statement with an
expression is forbidden (and pointless).

Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit b4668274b944abae61759e796c5cc36ade510f24)

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

 libavcodec/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 8e5cfd5..2d62f07 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1340,7 +1340,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
 }
 




More information about the ffmpeg-cvslog mailing list