[FFmpeg-cvslog] snow: Restore three mistakenly removed casts.

Diego Biurrun git at videolan.org
Wed Jan 4 01:39:31 CET 2012


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Jan  2 17:29:10 2012 +0100| [418f066f8ce35f4a9cc2bea2cbb125a26ca0a003] | committer: Diego Biurrun

snow: Restore three mistakenly removed casts.

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

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

diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index 545f883..905e02a 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -516,9 +516,9 @@ static void halfpel_interpol(SnowContext *s, uint8_t *halfpel[4][4], AVFrame *fr
         int ls= frame->linesize[p];
         uint8_t *src= frame->data[p];
 
-        halfpel[1][p] = av_malloc(ls * (h + 2 * EDGE_WIDTH)) + EDGE_WIDTH * (1 + ls);
-        halfpel[2][p] = av_malloc(ls * (h + 2 * EDGE_WIDTH)) + EDGE_WIDTH * (1 + ls);
-        halfpel[3][p] = av_malloc(ls * (h + 2 * EDGE_WIDTH)) + EDGE_WIDTH * (1 + ls);
+        halfpel[1][p] = (uint8_t*) av_malloc(ls * (h + 2 * EDGE_WIDTH)) + EDGE_WIDTH * (1 + ls);
+        halfpel[2][p] = (uint8_t*) av_malloc(ls * (h + 2 * EDGE_WIDTH)) + EDGE_WIDTH * (1 + ls);
+        halfpel[3][p] = (uint8_t*) av_malloc(ls * (h + 2 * EDGE_WIDTH)) + EDGE_WIDTH * (1 + ls);
 
         halfpel[0][p]= src;
         for(y=0; y<h; y++){



More information about the ffmpeg-cvslog mailing list