Skip to content

Commit

Permalink
linux: correctly set timestamps for bitrate
Browse files Browse the repository at this point in the history
  • Loading branch information
xytovl committed Apr 17, 2021
1 parent fcd3d78 commit 4ac4c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alvr/server/cpp/platform/linux/CEncoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@ void CEncoder::Run() {
mapped_frames.push_back(mapped_frame);
}


fprintf(stderr, "CEncoder starting to read present packets");
present_packet frame_info;
std::vector<uint8_t> encoded_frame;
Expand Down Expand Up @@ -447,6 +446,7 @@ void CEncoder::Run() {
} else {
encoder_frame->pict_type = AV_PICTURE_TYPE_NONE;
}
encoder_frame->pts = encode_start.time_since_epoch().count();

if ((err = avcodec_send_frame(avctx.get(), encoder_frame)) < 0) {
throw alvr::AvException("avcodec_send_frame failed: ", err);
Expand Down

0 comments on commit 4ac4c3b

Please sign in to comment.