Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/rust/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ pub struct Args {
/// nothing is selected and no subtitle is generated
/// --codec teletext
/// select the teletext subtitle from elementary stream
/// --codec isdb select ISDB/ARIB subtitle stream (Japanese broadcast)
#[arg(long, verbatim_doc_comment, value_name="value", help_heading=OUTPUT_AFFECTING_CODEC)]
pub codec: Option<CCXCodec>,
/// --no-codec dvbsub
Expand Down Expand Up @@ -977,6 +978,7 @@ pub struct Args {
pub enum CCXCodec {
Dvbsub,
Teletext,
Isdb,
}

#[derive(Display, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum)]
Expand Down
6 changes: 6 additions & 0 deletions src/rust/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,9 @@ impl OptionsExt for Options {
CCXCodec::Dvbsub => {
self.demux_cfg.codec = SelectCodec::Some(Codec::Dvb);
}
CCXCodec::Isdb => {
self.demux_cfg.codec = SelectCodec::Some(Codec::IsdbCc);
}
}
}

Expand All @@ -690,6 +693,9 @@ impl OptionsExt for Options {
CCXCodec::Teletext => {
self.demux_cfg.nocodec = SelectCodec::Some(Codec::Teletext);
}
CCXCodec::Isdb => {
self.demux_cfg.nocodec = SelectCodec::Some(Codec::IsdbCc);
}
}
}

Expand Down
Loading