summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-05-20 08:41:20 -0600
committerJohn Stebbins <[email protected]>2016-05-20 08:41:20 -0600
commit96b75f5d3402a6c44a99daaec68cae2951bd7d6d (patch)
tree36d3e83789f564b1e1645735603598a34b7cc889
parent2fe7d668c4648ad60f3159a1f0c146eb512a9013 (diff)
stream: create default chapter names for empty chapter titles
-rw-r--r--libhb/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index 3fb7ca5a2..5cc2d6618 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -5569,7 +5569,7 @@ static hb_title_t *ffmpeg_title_scan( hb_stream_t *stream, hb_title_t *title )
/* Ignore generic chapter names set by MakeMKV
* ("Chapter 00" etc.).
* Our default chapter names are better. */
- if( tag && tag->value &&
+ if( tag && tag->value && tag->value[0] &&
( strncmp( "Chapter ", tag->value, 8 ) ||
strlen( tag->value ) > 11 ) )
{