Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit e7c311f

Browse files
authored
add av_register_all() function call back into FFmpegDemuxer.cpp to avoid error about 'no AVFormatContext provided' (#289)
1 parent 165d4e7 commit e7c311f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PyNvCodec/TC/src/FFmpegDemuxer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ FFmpegDemuxer::CreateFormatContext(const char *szFilePath,
463463
}
464464

465465
AVFormatContext *ctx = nullptr;
466+
av_register_all();
466467
auto err = avformat_open_input(&ctx, szFilePath, nullptr, &options);
467468
if (err < 0 || nullptr == ctx) {
468469
cerr << "Can't open " << szFilePath << ": " << AvErrorToString(err) << "\n";

0 commit comments

Comments
 (0)