Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hevc raw inspect: fix detection of SAP type 2 - see #2462
  • Loading branch information
rbouqueau committed May 13, 2023
1 parent c626b6e commit fe02e73
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/filters/reframe_nalu.c
Expand Up @@ -3433,22 +3433,19 @@ GF_Err naludmx_process(GF_Filter *filter)
bIntraSlice = gf_hevc_slice_is_intra(ctx->hevc_state);

au_sap_type = GF_FILTER_SAP_NONE;
if (gf_hevc_slice_is_IDR(ctx->hevc_state)) {
au_sap_type = GF_FILTER_SAP_1;
}
else {
switch (ctx->hevc_state->s_info.nal_unit_type) {
switch (ctx->hevc_state->s_info.nal_unit_type) {
case GF_HEVC_NALU_SLICE_IDR_W_DLP:
case GF_HEVC_NALU_SLICE_BLA_W_LP:
case GF_HEVC_NALU_SLICE_BLA_W_DLP:
au_sap_type = GF_FILTER_SAP_3;
au_sap_type = GF_FILTER_SAP_2;
break;
case GF_HEVC_NALU_SLICE_IDR_N_LP:
case GF_HEVC_NALU_SLICE_BLA_N_LP:
au_sap_type = GF_FILTER_SAP_1;
break;
case GF_HEVC_NALU_SLICE_CRA:
au_sap_type = GF_FILTER_SAP_3;
break;
}
}

slice_poc = ctx->hevc_state->s_info.poc;
Expand Down

0 comments on commit fe02e73

Please sign in to comment.