Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
igorshevach committed Apr 29, 2024
1 parent 4fada6c commit 35d5840
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nginx-rtmp-module/src/ngx_rtmp_codec_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,6 @@ ngx_rtmp_codec_av(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, ngx_chain_t *in)
header = &ctx->avc_header;
ngx_rtmp_codec_parse_avc_header(s, in);
}

}

if (header == NULL) {
Expand Down Expand Up @@ -906,8 +905,7 @@ ngx_rtmp_codec_parse_avc_header(ngx_rtmp_session_t *s, ngx_chain_t *in)
ctx->width, ctx->height);
}

#define bit_reader_check(expr) \
if(ngx_rtmp_bit_read_err(&br) || ngx_rtmp_bit_read_eof(&br)) { \
#define bit_reader_check(expr) if(ngx_rtmp_bit_read_err(&br) || ngx_rtmp_bit_read_eof(&br)) { \
err_msg = #expr; \
goto error; \
} \
Expand Down

0 comments on commit 35d5840

Please sign in to comment.