Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
017c0811
Commit
017c0811
authored
Mar 03, 2009
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a get_sbits_long() function.
Originally committed as revision 17740 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8858990f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
bitstream.h
libavcodec/bitstream.h
+8
-0
No files found.
libavcodec/bitstream.h
View file @
017c0811
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include "libavutil/common.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/log.h"
#include "mathops.h"
#if defined(ALT_BITSTREAM_READER_LE) && !defined(ALT_BITSTREAM_READER)
#if defined(ALT_BITSTREAM_READER_LE) && !defined(ALT_BITSTREAM_READER)
# define ALT_BITSTREAM_READER
# define ALT_BITSTREAM_READER
...
@@ -706,6 +707,13 @@ static inline unsigned int get_bits_long(GetBitContext *s, int n){
...
@@ -706,6 +707,13 @@ static inline unsigned int get_bits_long(GetBitContext *s, int n){
}
}
}
}
/**
* reads 0-32 bits as a signed integer.
*/
static
inline
int
get_sbits_long
(
GetBitContext
*
s
,
int
n
)
{
return
sign_extend
(
get_bits_long
(
s
,
n
),
n
);
}
/**
/**
* shows 0-32 bits.
* shows 0-32 bits.
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment