[FFmpeg-cvslog] dvdsubenc: use unsigned shifts to avoid shifting into the sign bit

Michael Niedermayer git at videolan.org
Sat Jan 12 21:45:44 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jan 12 21:40:41 2013 +0100| [2ea3f37d5f974ab79a3a777e42f5dbfac17c1959] | committer: Michael Niedermayer

dvdsubenc: use unsigned shifts to avoid shifting into the sign bit

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/dvdsubenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c
index cd041c3..6e19623 100644
--- a/libavcodec/dvdsubenc.c
+++ b/libavcodec/dvdsubenc.c
@@ -207,7 +207,7 @@ static void select_palette(AVCodecContext *avctx, int out_palette[4],
 
 static void build_color_map(AVCodecContext *avctx, int cmap[],
                             const uint32_t palette[],
-                            const int out_palette[], int const out_alpha[])
+                            const int out_palette[], unsigned int const out_alpha[])
 {
     DVDSubtitleContext *dvdc = avctx->priv_data;
     int i, j, d, best_d;



More information about the ffmpeg-cvslog mailing list