diff options
author | John Stebbins <[email protected]> | 2019-07-15 09:32:29 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-07-15 09:32:29 -0700 |
commit | 3f9531974c9a8d6c0f43a5ee536c419ac407401b (patch) | |
tree | 99dd820772f30a2af60fd0af1d05dd5ea433fe6d /libhb/stream.c | |
parent | f99a5981027c1393638ea6b547cf3258ec5dfcda (diff) |
Fix dropped audio when embedded CC sub is selected
The subtitle ID assigned to CC embedded in video collided with regular
track IDs in some file types.
Fixes https://github.com/HandBrake/HandBrake/issues/2103
Diffstat (limited to 'libhb/stream.c')
-rw-r--r-- | libhb/stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/stream.c b/libhb/stream.c index ca8739190..1fa701827 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -968,8 +968,8 @@ hb_stream_t * hb_bd_stream_open( hb_handle_t *h, hb_title_t *title ) { // If the subtitle track is CC embedded in the video stream, then // it does not have an independent pid. In this case, we assigned - // the subtitle->id to 0. - if (subtitle->id != 0) + // the subtitle->id to HB_SUBTITLE_EMBEDDED_CC_TAG. + if (subtitle->id != HB_SUBTITLE_EMBEDDED_CC_TAG) { pid = subtitle->id & 0xFFFF; stream_type = subtitle->stream_type; |