Commit 49fd7ff6 authored by michael's avatar michael

"put_s should store signed values. Spotted on #mplayerdev by someone I

don't remember." patch by (Luca Barbato [lu_zero gentoo org)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4035 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a07db266
...@@ -420,7 +420,7 @@ static void put_str(ByteIOContext *bc, const char *string){ ...@@ -420,7 +420,7 @@ static void put_str(ByteIOContext *bc, const char *string){
put_buffer(bc, string, len); 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 ); if (val<=0) put_v(bc, -2*val );
else put_v(bc, 2*val-1); else put_v(bc, 2*val-1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment