Skip to content

Commit 34ba649

Browse files
HeyJupiterwinshining
authored andcommitted
[dev] remove the restriction of H.264 encoded video only gop cache. (#103)
1 parent d7f6b07 commit 34ba649

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ngx_rtmp_gop_cache_module.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -451,15 +451,6 @@ ngx_rtmp_gop_cache_frame(ngx_rtmp_session_t *s, ngx_uint_t prio,
451451
}
452452

453453
if (ch->type == NGX_RTMP_MSG_VIDEO) {
454-
// drop video when not H.264
455-
if (codec_ctx->video_codec_id != NGX_RTMP_VIDEO_H264) {
456-
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0,
457-
"drop video non-H.264 encode type timestamp=%uD",
458-
ch->timestamp);
459-
460-
return;
461-
}
462-
463454
// drop non-IDR
464455
if (prio != NGX_RTMP_VIDEO_KEY_FRAME && ctx->cache_head == NULL) {
465456
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0,

0 commit comments

Comments
 (0)