diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-04-11 12:57:49 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-04-11 12:57:49 +0000 |
commit | 59eeddf063c9d5e7d0d3b57d961a2d4d02825e6f (patch) | |
tree | 790bef703cc4b78504bf2ef5d7d0375a93bcb878 /libavcodec/h264.h | |
parent | faf3dfb94beb18277234034331435c97d421c950 (diff) | |
download | ffmpeg-streaming-59eeddf063c9d5e7d0d3b57d961a2d4d02825e6f.zip ffmpeg-streaming-59eeddf063c9d5e7d0d3b57d961a2d4d02825e6f.tar.gz |
Crop parameters are unsigned, having them negative could be bad and lead
to crashes or maybe exploits (not checked at all if this is possible).
Originally committed as revision 12789 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r-- | libavcodec/h264.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 64551b9..622a555 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -93,10 +93,10 @@ typedef struct SPS{ int mb_aff; ///<mb_adaptive_frame_field_flag int direct_8x8_inference_flag; int crop; ///< frame_cropping_flag - int crop_left; ///< frame_cropping_rect_left_offset - int crop_right; ///< frame_cropping_rect_right_offset - int crop_top; ///< frame_cropping_rect_top_offset - int crop_bottom; ///< frame_cropping_rect_bottom_offset + unsigned int crop_left; ///< frame_cropping_rect_left_offset + unsigned int crop_right; ///< frame_cropping_rect_right_offset + unsigned int crop_top; ///< frame_cropping_rect_top_offset + unsigned int crop_bottom; ///< frame_cropping_rect_bottom_offset int vui_parameters_present_flag; AVRational sar; int timing_info_present_flag; |