[FFmpeg-cvslog] sws: fix warning: new qualifiers in middle of multi-level non-const cast are unsafe warning.
Michael Niedermayer
git at videolan.org
Sat Oct 22 05:23:28 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 22 05:14:08 2011 +0200| [d3d97d43d51840086d86728bbfcd072eea7a5b85] | committer: Michael Niedermayer
sws: fix warning: new qualifiers in middle of multi-level non-const cast are unsafe warning.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d3d97d43d51840086d86728bbfcd072eea7a5b85
---
libswscale/swscale_unscaled.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index e8a92c2..fc75c7d 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -798,7 +798,7 @@ int sws_scale(struct SwsContext *c, const uint8_t* const srcSlice[],
int dstStride2[4]= {dstStride[0], dstStride[1], dstStride[2], dstStride[3]};
reset_ptr(src2, c->srcFormat);
- reset_ptr((const uint8_t**)dst2, c->dstFormat);
+ reset_ptr((void*)dst2, c->dstFormat);
/* reset slice direction at end of frame */
if (srcSliceY + srcSliceH == c->srcH)
More information about the ffmpeg-cvslog
mailing list