mirror of
https://github.com/mpv-player/mpv
synced 2025-01-15 19:42:53 +00:00
Fix value of bit counter at end of functions to prepare for future patches.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30903 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2990ec1682
commit
0eee2d2bd5
@ -251,9 +251,8 @@ int mp4_header_process_vol(mp_mpeg_header_t * picture, unsigned char * buffer)
|
||||
|
||||
n++; //marker bit
|
||||
|
||||
if(getbits(buffer, n, 1)) { //fixed_vop_timeinc
|
||||
n++;
|
||||
n = read_timeinc(picture, buffer, n);
|
||||
if(getbits(buffer, n++, 1)) { //fixed_vop_timeinc
|
||||
n += read_timeinc(picture, buffer, n);
|
||||
|
||||
if(picture->timeinc_unit)
|
||||
picture->fps = (float) picture->timeinc_resolution / (float) picture->timeinc_unit;
|
||||
@ -276,7 +275,7 @@ void mp4_header_process_vop(mp_mpeg_header_t * picture, unsigned char * buffer)
|
||||
n++;
|
||||
getbits(buffer, n, 1);
|
||||
n++;
|
||||
n = read_timeinc(picture, buffer, n);
|
||||
n += read_timeinc(picture, buffer, n);
|
||||
}
|
||||
|
||||
#define min(a, b) ((a) <= (b) ? (a) : (b))
|
||||
|
Loading…
Reference in New Issue
Block a user