Merge commit '37b3361e755361d4ff14a2973df001c0140d98d6'

* commit '37b3361e755361d4ff14a2973df001c0140d98d6':
  mpeg12enc: factor out check in encode_dc

Merged-by: Michael Niedermayer <michaelni@gmx.at>
pull/94/head
Michael Niedermayer 10 years ago
commit 98d6f0ffef
  1. 3
      libavcodec/mpeg12enc.c

@ -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) {

Loading…
Cancel
Save