Skip to content

Commit fd3f971

Browse files
committed
vcomp/lavc: hide CFHD if help is not full
It is better that user uses the dedicated encoder so do not advertise that by default.
1 parent 69f86d0 commit fd3f971

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/video_compress/libavcodec.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ void usage(bool full) {
400400
":slices=<slices>][safe]\n\t\t[:<lavc_opt>=<val>]*")
401401
<< "\n\t" << SBOLD(SRED("-c libavcodec") << ":[full]help") << "\n";
402402
col() << "\nwhere\n";
403+
col() << "\t" << SBOLD("fullhelp") << " show all supported codecs and optiona\n";
403404
col() << "\t" << SBOLD("<encoder>") << " specifies encoder (eg. nvenc or libx264 for H.264)\n";
404405
col() << "\t" << SBOLD("<codec_name>") << " - codec name (default MJPEG) if encoder name is not specified\n";
405406
col() << "\t" << SBOLD("[disable_]intra_refresh") << ", "
@@ -434,6 +435,9 @@ void usage(bool full) {
434435
if (avID == AV_CODEC_ID_NONE) { // unhandled or old FFMPEG -> codec id is flushed to 0 in compat
435436
continue;
436437
}
438+
if (!full && ug_codec == CFHD) {
439+
continue;
440+
}
437441
char avail[1024];
438442
const AVCodec *codec;
439443
if ((codec = avcodec_find_encoder(avID))) {

0 commit comments

Comments
 (0)