mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
"put_s should store signed values. Spotted on #mplayerdev by someone I
don't remember." patch by (Luca Barbato [lu_zero gentoo org) Originally committed as revision 4035 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
27a5fe5fdf
commit
7071e56799
@ -420,7 +420,7 @@ static void put_str(ByteIOContext *bc, const char *string){
|
||||
put_buffer(bc, string, len);
|
||||
}
|
||||
|
||||
static void put_s(ByteIOContext *bc, uint64_t val){
|
||||
static void put_s(ByteIOContext *bc, int64_t val){
|
||||
if (val<=0) put_v(bc, -2*val );
|
||||
else put_v(bc, 2*val-1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user