Skip to content

Commit

Permalink
Fix NDI video stretched
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcoetzeeza committed Jun 12, 2024
1 parent e4e9ed2 commit d41de1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/newtek/producer/newtek_ndi_producer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ struct newtek_ndi_producer : public core::frame_producer
av_frame->format = AV_PIX_FMT_BGRA;
break;
}
#ifdef _WIN32
av_frame->width = video_frame.xres;
#else
av_frame->width = video_frame.line_stride_in_bytes;
#endif
av_frame->height = video_frame.yres;
NDIlib_audio_frame_interleaved_32s_t audio_frame_32s;
audio_frame_32s.p_data = new int32_t[audio_frame.no_samples * audio_frame.no_channels];
Expand Down

0 comments on commit d41de1e

Please sign in to comment.