Skip to content

Commit

Permalink
fix: ignore SEI NalUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
haruyama committed Aug 28, 2023
1 parent 5eac4e5 commit 307dc28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/track/h264.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ void H264Track::addData(const std::uint64_t timestamp,
addMdatData(timestamp, mdat_data, video_data_size + 4, is_key);
delete[] mdat_data;
break;
case 6:
// SEI
// 無視する
break;
case 7:
// SPS
std::copy_n(data + nu.start + nu.start_code_size, nu.end - nu.start - nu.start_code_size,
Expand Down

0 comments on commit 307dc28

Please sign in to comment.