Skip to content

Commit

Permalink
lavc video: do not report "lavc" shortcut in caps
Browse files Browse the repository at this point in the history
would be displayed twice in GUI otherwise
  • Loading branch information
MartinPulec committed Oct 5, 2023
1 parent 8e1f890 commit 4c250bd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/video_compress/libavcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1965,8 +1965,20 @@ const struct video_compress_info libavcodec_info = {
get_libavcodec_module_info,
};

const struct video_compress_info lavc_info = {
"lavc",
libavcodec_compress_init,
nullptr,
libavcodec_compress_tile,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
};

REGISTER_MODULE(libavcodec, &libavcodec_info, LIBRARY_CLASS_VIDEO_COMPRESS, VIDEO_COMPRESS_ABI_VERSION);
REGISTER_HIDDEN_MODULE(lavc, &libavcodec_info, LIBRARY_CLASS_VIDEO_COMPRESS,
REGISTER_HIDDEN_MODULE(lavc, &lavc_info, LIBRARY_CLASS_VIDEO_COMPRESS,
VIDEO_COMPRESS_ABI_VERSION);

} // end of anonymous namespace
Expand Down

0 comments on commit 4c250bd

Please sign in to comment.