History

simplify

Originally committed as revision 12755 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer committed 18 years ago

Commit 4764fdc1 parent 4e4a3e21 file · +3 −3Browse files

Showing the changes to libavutil/integer.c (1 of 1 file). Show all

Unified · Split

libavutil/integer.c+3−3
@@ -96,10 +96,10 @@ AVInteger av_shr_i(AVInteger a, int s){ · 95 unmodified lines
96 int i;96 int i;
97 97
98 for(i=0; i<AV_INTEGER_SIZE; i++){98 for(i=0; i<AV_INTEGER_SIZE; i++){
99 int index= i + (s>>4);99 unsigned int index= i + (s>>4);
100 unsigned int v=0;100 unsigned int v=0;
101 if(index+1<AV_INTEGER_SIZE && index+1>=0) v = a.v[index+1]<<16;101 if(index+1<AV_INTEGER_SIZE) v = a.v[index+1]<<16;
102 if(index <AV_INTEGER_SIZE && index >=0) v+= a.v[index ];102 if(index <AV_INTEGER_SIZE) v+= a.v[index ];
103 out.v[i]= v >> (s&15);103 out.v[i]= v >> (s&15);
104 }104 }
105 return out;105 return out;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t