X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh264_ps.c;h=7174d5b77521df4980505f061b5659d9db32f176;hb=8bdcec31116594b07e83a8845b64a5e8172884f2;hp=c2747ac84cd2cad62881a03237b62f299d3dcb05;hpb=50255b7a865f0dd4fecf8d1e337f96b92b4b406e;p=ffmpeg diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c index c2747ac84cd..7174d5b7752 100644 --- a/libavcodec/h264_ps.c +++ b/libavcodec/h264_ps.c @@ -460,10 +460,10 @@ int ff_h264_decode_seq_parameter_set(H264Context *h) #endif sps->crop = get_bits1(&h->gb); if (sps->crop) { - int crop_left = get_ue_golomb(&h->gb); - int crop_right = get_ue_golomb(&h->gb); - int crop_top = get_ue_golomb(&h->gb); - int crop_bottom = get_ue_golomb(&h->gb); + unsigned int crop_left = get_ue_golomb(&h->gb); + unsigned int crop_right = get_ue_golomb(&h->gb); + unsigned int crop_top = get_ue_golomb(&h->gb); + unsigned int crop_bottom = get_ue_golomb(&h->gb); int width = 16 * sps->mb_width; int height = 16 * sps->mb_height * (2 - sps->frame_mbs_only_flag);