[FFmpeg-cvslog] id3v2: remove pointless casts

Anton Khirnov git at videolan.org
Tue Oct 4 03:47:41 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Oct  2 09:14:30 2011 +0200| [60df6b004858dcab96fc96c6dd32484780a8d7c3] | committer: Anton Khirnov

id3v2: remove pointless casts

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

 libavformat/id3v2.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index 48443e1..c30ab4c 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -111,7 +111,7 @@ static int decode_str(AVFormatContext *s, AVIOContext *pb, int encoding,
     case ID3v2_ENCODING_UTF16BOM:
         if ((left -= 2) < 0) {
             av_log(s, AV_LOG_ERROR, "Cannot read BOM value, input too short\n");
-            avio_close_dyn_buf(dynbuf, (uint8_t **)dst);
+            avio_close_dyn_buf(dynbuf, dst);
             av_freep(dst);
             return AVERROR_INVALIDDATA;
         }
@@ -122,7 +122,7 @@ static int decode_str(AVFormatContext *s, AVIOContext *pb, int encoding,
             break;
         default:
             av_log(s, AV_LOG_ERROR, "Incorrect BOM value\n");
-            avio_close_dyn_buf(dynbuf, (uint8_t **)dst);
+            avio_close_dyn_buf(dynbuf, dst);
             av_freep(dst);
             *maxread = left;
             return AVERROR_INVALIDDATA;
@@ -152,7 +152,7 @@ static int decode_str(AVFormatContext *s, AVIOContext *pb, int encoding,
     if (ch)
         avio_w8(dynbuf, 0);
 
-    avio_close_dyn_buf(dynbuf, (uint8_t **)dst);
+    avio_close_dyn_buf(dynbuf, dst);
     *maxread = left;
 
     return 0;



More information about the ffmpeg-cvslog mailing list