Skip to content

Commit

Permalink
build & test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
igorshevach committed Apr 25, 2024
1 parent d172de1 commit 7642bb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nginx-rtmp-module/src/ngx_rtmp_codec_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ ngx_rtmp_codec_av(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, ngx_chain_t *in)
header = &ctx->aac_header;
ngx_rtmp_codec_parse_aac_header(s, in);
}

} else {
if (ctx->video_codec_id == NGX_RTMP_VIDEO_H264) {
header = &ctx->avc_header;
Expand Down Expand Up @@ -991,7 +991,7 @@ ngx_rtmp_codec_parse_hevc_header(ngx_rtmp_session_t *s, ngx_chain_t *in)
ngx_log_debug2(NGX_LOG_DEBUG_RTMP, s->connection->log, 0, "codec: hevc nal_type=%ui nnal=%ui", nal_type, nnal);
for (i = 0; i < nnal; i++) {
bit_reader_check(nnall = (ngx_uint_t) ngx_rtmp_bit_read_16(&br));
bit_reader_check(ngx_rtmp_bit_read(&br, nnall*8));
bit_reader_check(ngx_rtmp_bit_read(&br, nnall * 8));
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0, "codec: hevc nnall=%ui", nnall);
// vps: 32 sps: 33 pps: 34
}
Expand Down
3 changes: 2 additions & 1 deletion nginx-rtmp-module/src/ngx_rtmp_codec_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ enum {
NGX_RTMP_AUDIO_DEVSPEC = 15,
};

// extension packetType as defined in "https://veovera.org/docs/enhanced/enhanced.rtmp.v1"

// extension packetType as defined in "https://veovera.org/docs/enhanced/enhanced-rtmp-v1"
typedef enum {
PacketTypeSequenceStart,
PacketTypeCodedFrames,
Expand Down

0 comments on commit 7642bb2

Please sign in to comment.