[FFmpeg-cvslog] truemotion2: remove unreachable code

Paul B Mahol git at videolan.org
Fri Oct 12 13:57:36 CEST 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Oct 12 11:53:07 2012 +0000| [caa7e24eb1d47a0dfeb9783909bce7df6d3f5482] | committer: Paul B Mahol

truemotion2: remove unreachable code

Fixes CID610345.

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavcodec/truemotion2.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/truemotion2.c b/libavcodec/truemotion2.c
index c7b7ac3..1e682a7 100644
--- a/libavcodec/truemotion2.c
+++ b/libavcodec/truemotion2.c
@@ -222,8 +222,6 @@ static inline int tm2_read_header(TM2Context *ctx, const uint8_t *buf)
         av_log (ctx->avctx, AV_LOG_ERROR, "Not a TM2 header: 0x%08X\n", magic);
         return -1;
     }
-
-    return buf - obuf;
 }
 
 static int tm2_read_deltas(TM2Context *ctx, int stream_id) {



More information about the ffmpeg-cvslog mailing list