Commit 98d6f0ff authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '37b3361e'

* commit '37b3361e':
  mpeg12enc: factor out check in encode_dc
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents c96a44d0 37b3361e
......@@ -606,7 +606,8 @@ static void mpeg1_encode_motion(MpegEncContext *s, int val, int f_or_b_code)
static inline void encode_dc(MpegEncContext *s, int diff, int component)
{
if (((unsigned) (diff + 255)) >= 511) {
unsigned int diff_u = diff + 255;
if (diff_u >= 511) {
int index;
if (diff < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment