Skip to content

Commit

Permalink
FFMpegHandler: Fix av_register_all() deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
whyman committed Dec 17, 2018
1 parent b9542f2 commit ef19b53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/metadata/ffmpeg_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,10 @@ void FfmpegHandler::fillMetadata(Ref<CdsItem> item)
// Suppress all log messages
av_log_set_callback(FfmpegNoOutputStub);

#if ( LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58,9,100) )
// Register all formats and codecs
av_register_all();

#endif
// Open video file
if (avformat_open_input(&pFormatCtx,
item->getLocation().c_str(), NULL, NULL)
Expand Down

1 comment on commit ef19b53

@elmodaddyb
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Please sign in to comment.