h264-parser
parse h264 bitstream nalu
parse h264 bitstream nalu
License: MIT License
parse h264 bitstream nalu
parser looks interesting! I tried to build but received this error:
➜ h264-parser git:(master) cmake .
-- The C compiler identification is AppleClang 6.0.0.6000056
-- The CXX compiler identification is AppleClang 6.0.0.6000056
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/Dillon/Desktop/REAL DROPBOX/CURRENT/GIT CLONES/h264-parser
and then in make
➜ h264-parser git:(master) ✗ make
Scanning dependencies of target h264_parser
[ 50%] Building C object CMakeFiles/h264_parser.dir/src/main.c.o
[100%] Building C object CMakeFiles/h264_parser.dir/src/h264-stream.c.o
/Users/Dillon/Desktop/REAL DROPBOX/CURRENT/GIT CLONES/h264-parser/src/h264-stream.c:68:16: error:
implicit declaration of function 'h264_nal_unit' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
nalu = h264_nal_unit(s);
^
/Users/Dillon/Desktop/REAL DROPBOX/CURRENT/GIT CLONES/h264-parser/src/h264-stream.c:68:14: error:
incompatible integer to pointer conversion assigning to 'h264_nalu_t *'
(aka 'struct h264_nalu *') from 'int' [-Werror,-Wint-conversion]
nalu = h264_nal_unit(s);
^ ~~~~~~~~~~~~~~~~
/Users/Dillon/Desktop/REAL DROPBOX/CURRENT/GIT CLONES/h264-parser/src/h264-stream.c:70:12: error:
implicit declaration of function 'h264_more_data_in_byte_stream' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
while (h264_more_data_in_byte_stream(s) &&
^
/Users/Dillon/Desktop/REAL DROPBOX/CURRENT/GIT CLONES/h264-parser/src/h264-stream.c:75:12: error:
use of undeclared identifier 'nu'
return nu;
^
4 errors generated.
make[2]: *** [CMakeFiles/h264_parser.dir/src/h264-stream.c.o] Error 1
make[1]: *** [CMakeFiles/h264_parser.dir/all] Error 2
make: *** [all] Error 2
➜ h264-parser git:(master) ✗ make
Scanning dependencies of target h264_parser
[ 33%] Building C object CMakeFiles/h264_parser.dir/src/main.c.o
[ 66%] Building C object CMakeFiles/h264_parser.dir/src/h264-stream.c.o
In file included from /home/jinlei1/oss/h264-parser/src/h264-stream.c:11:0:
/home/jinlei1/oss/h264-parser/src/h264-nalu.h:11:5: error: unknown type name ‘uint8_t’
uint8_t nal_ref_idc;
^
/home/jinlei1/oss/h264-parser/src/h264-nalu.h:12:5: error: unknown type name ‘uint8_t’
uint8_t nal_unit_type;
^
/home/jinlei1/oss/h264-parser/src/h264-stream.c: In function ‘h264_byte_stream_get_nalu’:
/home/jinlei1/oss/h264-parser/src/h264-stream.c:68:9: error: implicit declaration of function ‘h264_nal_unit’ [-Werror=implicit-function-declaration]
nalu = h264_nal_unit(s);
^
/home/jinlei1/oss/h264-parser/src/h264-stream.c:68:14: error: assignment makes pointer from integer without a cast [-Werror]
nalu = h264_nal_unit(s);
^
/home/jinlei1/oss/h264-parser/src/h264-stream.c:70:5: error: implicit declaration of function ‘h264_more_data_in_byte_stream’ [-Werror=implicit-function-declaration]
while (h264_more_data_in_byte_stream(s) &&
^
/home/jinlei1/oss/h264-parser/src/h264-stream.c:75:12: error: ‘nu’ undeclared (first use in this function)
return nu;
^
/home/jinlei1/oss/h264-parser/src/h264-stream.c:75:12: note: each undeclared identifier is reported only once for each function it appears in
/home/jinlei1/oss/h264-parser/src/h264-stream.c:52:18: error: variable ‘nalu’ set but not used [-Werror=unused-but-set-variable]
h264_nalu_t *nalu = NULL;
^
/home/jinlei1/oss/h264-parser/src/h264-stream.c: At top level:
/home/jinlei1/oss/h264-parser/src/h264-stream.c:78:16: error: ‘h264_exp_golomb_bits’ defined but not used [-Werror=unused-variable]
static uint8_t h264_exp_golomb_bits[256] = {
^
/home/jinlei1/oss/h264-parser/src/h264-stream.c: In function ‘h264_byte_stream_get_nalu’:
/home/jinlei1/oss/h264-parser/src/h264-stream.c:76:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/h264_parser.dir/src/h264-stream.c.o] Error 1
make[1]: *** [CMakeFiles/h264_parser.dir/all] Error 2
make: *** [all] Error 2
first blood.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.