Skip to content

Commit cd80006

Browse files
committed
[dbg] Load libav::strerror() from libavutil
1 parent db30a70 commit cd80006

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

avs/vis_avs/video_libav.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ bool AVS_Video::LibAV::load_libav_dlibs() {
2525
LOAD_FUNC(AVS_Video::LibAV, libavformat, av, read_frame);
2626
LOAD_FUNC(AVS_Video::LibAV, libavformat, av, seek_frame);
2727
LOAD_FUNC(AVS_Video::LibAV, libavutil, av, frame_unref);
28+
LOAD_FUNC(AVS_Video::LibAV, libavutil, av, strerror);
2829
LOAD_FUNC(AVS_Video::LibAV, libavcodec, avcodec, find_decoder);
2930
LOAD_FUNC(AVS_Video::LibAV, libavcodec, avcodec, alloc_context3);
3031
LOAD_FUNC(AVS_Video::LibAV, libavcodec, avcodec, parameters_to_context);
@@ -55,6 +56,7 @@ DEFINE_FUNC(AVS_Video::LibAV, av, packet_unref);
5556
DEFINE_FUNC(AVS_Video::LibAV, av, read_frame);
5657
DEFINE_FUNC(AVS_Video::LibAV, av, seek_frame);
5758
DEFINE_FUNC(AVS_Video::LibAV, av, frame_unref);
59+
DEFINE_FUNC(AVS_Video::LibAV, av, strerror);
5860
DEFINE_FUNC(AVS_Video::LibAV, avcodec, find_decoder);
5961
DEFINE_FUNC(AVS_Video::LibAV, avcodec, alloc_context3);
6062
DEFINE_FUNC(AVS_Video::LibAV, avcodec, parameters_to_context);

avs/vis_avs/video_libav.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ struct AVS_Video::LibAV {
5353
static decltype(&av_read_frame) read_frame;
5454
static decltype(&av_seek_frame) seek_frame;
5555
static decltype(&av_frame_unref) frame_unref;
56+
static decltype(&av_strerror) strerror;
5657
static decltype(&avcodec_find_decoder) find_decoder;
5758
static decltype(&avcodec_alloc_context3) alloc_context3;
5859
static decltype(&avcodec_parameters_to_context) parameters_to_context;

0 commit comments

Comments
 (0)