summaryrefslogtreecommitdiffstats
path: root/libhb/rendersub.c
diff options
context:
space:
mode:
authorNomis101 <[email protected]>2019-11-19 17:17:46 +0100
committerDamiano Galassi <[email protected]>2019-11-21 15:16:50 +0100
commitc655ae28aa4db9275708b7e3051a66d31a686bc9 (patch)
tree8a8fbbeab1cb72897410af6b051f30bcaa01b523 /libhb/rendersub.c
parent820d2643071919db35a17bff257e0ce9295793d7 (diff)
Correct 'Unreachable code' warnings
Correct automated code inspection warnings 'Unreachable code' of jetbrains CLion. Partly fixes #2309
Diffstat (limited to 'libhb/rendersub.c')
-rw-r--r--libhb/rendersub.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/libhb/rendersub.c b/libhb/rendersub.c
index 1318f612a..9d36ae471 100644
--- a/libhb/rendersub.c
+++ b/libhb/rendersub.c
@@ -991,12 +991,12 @@ static int hb_rendersub_post_init( hb_filter_object_t * filter, hb_job_t *job )
case VOBSUB:
{
return vobsub_post_init( filter, job );
- } break;
+ }
case SSASUB:
{
return ssa_post_init( filter, job );
- } break;
+ }
case IMPORTSRT:
case IMPORTSSA:
@@ -1004,25 +1004,24 @@ static int hb_rendersub_post_init( hb_filter_object_t * filter, hb_job_t *job )
case TX3GSUB:
{
return textsub_post_init( filter, job );
- } break;
+ }
case CC608SUB:
{
return cc608sub_post_init( filter, job );
- } break;
+ }
case PGSSUB:
{
return pgssub_post_init( filter, job );
- } break;
+ }
default:
{
hb_log("rendersub: unsupported subtitle format %d", pv->type );
return 1;
- } break;
+ }
}
- return 0;
}
static int hb_rendersub_work( hb_filter_object_t * filter,
@@ -1035,12 +1034,12 @@ static int hb_rendersub_work( hb_filter_object_t * filter,
case VOBSUB:
{
return vobsub_work( filter, buf_in, buf_out );
- } break;
+ }
case SSASUB:
{
return ssa_work( filter, buf_in, buf_out );
- } break;
+ }
case IMPORTSRT:
case IMPORTSSA:
@@ -1049,18 +1048,18 @@ static int hb_rendersub_work( hb_filter_object_t * filter,
case TX3GSUB:
{
return textsub_work( filter, buf_in, buf_out );
- } break;
+ }
case PGSSUB:
{
return pgssub_work( filter, buf_in, buf_out );
- } break;
+ }
default:
{
hb_error("rendersub: unsupported subtitle format %d", pv->type );
return 1;
- } break;
+ }
}
}