GithubHelp home page GithubHelp logo

h264-parser's Introduction

h264-parser

parse h264 bitstream nalu

h264-parser's People

Contributors

akagi201 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

h264-parser's Issues

error on build:

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

cannot build

➜  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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.