Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hevc parser: cosmetic fixes
  • Loading branch information
perexg committed Feb 3, 2016
1 parent 6b9d559 commit c55e47f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/parsers/parser_hevc.h
Expand Up @@ -47,10 +47,10 @@
#define HEVC_NAL_VPS 32
#define HEVC_NAL_SPS 33
#define HEVC_NAL_PPS 34
#define NAL_AUD 35
#define NAL_EOS_NUT 36
#define NAL_EOB_NUT 37
#define NAL_FD_NUT 38
#define HEVC_NAL_AUD 35
#define HEVC_NAL_EOS_NUT 36
#define HEVC_NAL_EOB_NUT 37
#define HEVC_NAL_FD_NUT 38
#define HEVC_NAL_SEI_PREFIX 39
#define HEVC_NAL_SEI_SUFFIX 40

Expand Down
3 changes: 2 additions & 1 deletion src/parsers/parsers.c
Expand Up @@ -1634,7 +1634,8 @@ parse_hevc(service_t *t, elementary_stream_t *st, size_t len,
break;
}

if(is_ssc(next_startcode) || ((next_startcode >> 1) & 0x3f) == 1) {
if(is_ssc(next_startcode) ||
((next_startcode >> 1) & 0x3f) == HEVC_NAL_TRAIL_R) {
/* Complete frame - new start code or delimiter */
if (st->es_incomplete)
return PARSER_HEADER;
Expand Down

0 comments on commit c55e47f

Please sign in to comment.