diff options
author | John Stebbins <[email protected]> | 2019-07-17 10:13:20 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-07-17 10:15:52 -0700 |
commit | 53c3b8bf59fcfa42840152a0ef8af1ed18ee1429 (patch) | |
tree | 68f7c6250f6aaec9f318942342fd2a588b9d8adc | |
parent | df8c5f83dead18a3a02220bb3052b6681626115e (diff) |
stream: add support for eia 608 subtitle tracks
eia 608 embedded in video was supported (i.e. ffmpeg frame side
data AV_FRAME_DATA_A53_CC), but not as it's own track.
Fixes https://github.com/HandBrake/HandBrake/issues/1300
-rw-r--r-- | libhb/stream.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/stream.c b/libhb/stream.c index 1fa701827..d95ef8ad3 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -5455,6 +5455,13 @@ static void add_ffmpeg_subtitle( hb_title_t *title, hb_stream_t *stream, int id subtitle->config.dest = RENDERSUB; subtitle->codec = WORK_DECPGSSUB; break; + case AV_CODEC_ID_EIA_608: + subtitle->format = TEXTSUB; + subtitle->source = CC608SUB; + subtitle->config.dest = PASSTHRUSUB; + subtitle->codec = WORK_DECCC608; + subtitle->attributes = HB_SUBTITLE_ATTR_CC; + break; default: hb_log( "add_ffmpeg_subtitle: unknown subtitle stream type: 0x%x", (int) codecpar->codec_id ); |