Skip to content

Commit

Permalink
Add Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
bblaszkow06 committed Oct 4, 2018
1 parent 2b6dd0e commit df090d8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: elixir
elixir:
- 1.7
otp_release:
- 21.0
sudo: false

before_install:
- sudo add-apt-repository -y ppa:jonathonf/ffmpeg-3
- sudo apt-get update -qq
- sudo apt-get install -q -y libavcodec-dev libavformat-dev libavutil-dev
3 changes: 3 additions & 0 deletions c_src/membrane_element_ffmpeg_h264/decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ UNIFEX_TERM create(UnifexEnv *env) {
state->codec_ctx = NULL;
state->parser_ctx = NULL;

#if (LIBAVCODEC_VERSION_MAJOR < 58)
avcodec_register_all();
#endif
state->codec = avcodec_find_decoder(AV_CODEC_ID_H264);
if (!state->codec) {
res = create_result_error(env, "nocodec");
Expand Down

0 comments on commit df090d8

Please sign in to comment.