mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
fixed crash in hls
This commit is contained in:
@ -1800,7 +1800,8 @@ ngx_rtmp_hls_video(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h,
|
||||
*/
|
||||
|
||||
b = ctx->aframe;
|
||||
boundary = frame.key && (codec_ctx->aac_header == NULL || b->last > b->pos);
|
||||
boundary = frame.key && (codec_ctx->aac_header == NULL ||
|
||||
(b && b->last > b->pos));
|
||||
|
||||
ngx_rtmp_hls_update_fragment(s, frame.dts, boundary, 1);
|
||||
|
||||
|
Reference in New Issue
Block a user