Discover H264 keyframes on dequeue

This commit is contained in:
Kamil Trzciński
2022-10-29 11:36:58 +02:00
parent ec2ed5e392
commit 79e9bca11f
6 changed files with 27 additions and 26 deletions

View File

@ -77,7 +77,7 @@ static int http_ffmpeg_write_to_stream(void *opaque, uint8_t *buf, int buf_size)
static int http_ffmpeg_video_buf_part(buffer_lock_t *buf_lock, buffer_t *buf, int frame, http_ffmpeg_status_t *status)
{
if (!status->had_key_frame) {
status->had_key_frame = h264_is_key_frame(buf);
status->had_key_frame = buf->flags.is_keyframe;
}
if (!status->had_key_frame) {