Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
igorshevach committed May 4, 2024
1 parent 30dd576 commit fffec27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nginx-rtmp-kmp-module/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN git clone https://github.com/kaltura/nginx-stream-preread-str-module

ARG APP_VERSION=1.0

ARG DEBUG_BUILD=1
ARG DEBUG_BUILD=0

ENV RTMP_KMP_VERSION="${APP_VERSION}"
ENV MPEGTS_KMP_VERSION="${APP_VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion nginx-rtmp-kmp-module/src/ngx_rtmp_kmp_track.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ ngx_rtmp_kmp_track_init_frame(ngx_kmp_out_track_t *track,

}

if(codec_id == NGX_RTMP_VIDEO_H264 || ((codec_id == NGX_RTMP_CODEC_FOURCC_HVC1 || codec_id == NGX_RTMP_CODEC_FOURCC_HEV1)&& packet_type == PacketTypeCodedFrames)) {
if(codec_id == NGX_RTMP_VIDEO_H264 || ((codec_id == NGX_RTMP_CODEC_FOURCC_HVC1 || codec_id == NGX_RTMP_CODEC_FOURCC_HEV1) && packet_type == PacketTypeCodedFrames)) {
rc = ngx_rtmp_kmp_copy(&track->log, &comp_time, src,
sizeof(comp_time), in);
if (rc != NGX_OK) {
Expand Down
2 changes: 1 addition & 1 deletion nginx-rtmp-module/src/ngx_rtmp_codec_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ ngx_rtmp_codec_av(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, ngx_chain_t *in)
ngx_uint_t packet_type = (fmt & 0x0f);

header = &ctx->avc_header;
if(ngx_rtmp_codec_parse_extended_header(s, in, packet_type) < 0){
if(ngx_rtmp_codec_parse_extended_header(s, in, packet_type) < 0) {
header = NULL;
}

Expand Down

0 comments on commit fffec27

Please sign in to comment.