Skip to content

Commit

Permalink
GUACAMOLE-638: Merge avcodec_register_all() should be used only if no…
Browse files Browse the repository at this point in the history
…t deprecated.
  • Loading branch information
necouchman committed Nov 21, 2018
2 parents 0d435e2 + 867e63b commit bbb6afa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/guacenc/guacenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ int main(int argc, char* argv[]) {
guacenc_log(GUAC_LOG_INFO, "Guacamole video encoder (guacenc) "
"version " VERSION);

#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 10, 100)
/* Prepare libavcodec */
avcodec_register_all();
#endif

/* Track number of overall failures */
int total_files = argc - optind;
Expand Down

0 comments on commit bbb6afa

Please sign in to comment.