Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion esp_h264/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "1.1.3"
version: "1.1.4"
description: Espressif H264 encoder and decoder

url: https://github.com/espressif/esp-h264-component
Expand Down
19 changes: 19 additions & 0 deletions esp_h264/sw/src/esp_h264_enc_single_sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,25 @@ static esp_h264_err_t h264_sw_enc_process(esp_h264_enc_sw_handle_t *sw_hd, esp_h
default:
return ESP_H264_ERR_FAIL;
}
switch (sFbi.eFrameType) {
case videoFrameTypeIDR:
out_frame->frame_type = ESP_H264_FRAME_TYPE_IDR;
break;
case videoFrameTypeI:
out_frame->frame_type = ESP_H264_FRAME_TYPE_I;
break;
case videoFrameTypeP:
out_frame->frame_type = ESP_H264_FRAME_TYPE_P;
break;

case videoFrameTypeInvalid:
// fallthrough
case videoFrameTypeSKIP:
// fallthrough
case videoFrameTypeIPMixed:
out_frame->frame_type = ESP_H264_FRAME_TYPE_INVALID;
break;
}
out_frame->length = (uint32_t)sFbi.iFrameSizeInBytes;
out_frame->pts = (uint32_t)sFbi.uiTimeStamp;
out_frame->dts = in_frame->pts;
Expand Down