mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
Merge commit '37b3361e755361d4ff14a2973df001c0140d98d6'
* commit '37b3361e755361d4ff14a2973df001c0140d98d6': mpeg12enc: factor out check in encode_dc Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
98d6f0ffef
@ -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…
x
Reference in New Issue
Block a user