Feature/video in #3
Reference in New Issue
Block a user
Delete Branch "feature/video-in"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pass MXL grain stride (from sliceSizes[0]) into get_next_frame so YUV422P10toV210 writes with the correct line width instead of a self-computed value that may not match the MXL buffer. Fix audio stream detection: condition was inverted (!= -1 → == -1), so the first audio stream was never picked up. Add return false at end of get_next_frame to fix UB when g_running goes false and the loop exits without returning. Replace av_frame_unref/av_packet_unref with av_frame_free/av_packet_free in destructor — unref only releases data, not the struct itself. Add av_freep(&p10_data[0]) in destructor to free av_image_alloc memory. Remove unused p10_buffer and v210_buffer allocations. Read filename from config("file") instead of hardcoded path. Add early return if mxlCreateFlowWriter fails. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>VideoReader: - Guard get_source_info/allocate_conversion_buffers behind have_video check — prevents crash on audio-only files - Remove unused audiobuf parameter from get_next_frame - Remove dead return statements after throw - Remove unused SourceInfo::stride field and AudioInfo struct - Pass const std::string& instead of by value in constructor/open_file - Remove redundant struct keyword on SourceInfo source_info{} - Fix video_stream_index never guarded against -1 in open_file - Check av_image_alloc and avcodec_parameters_to_context return values - Remove extra av_packet_unref after seek (was harmless but confusing) - Use SWS_BILINEAR for sws_getContext flags instead of 0 - Replace NULL with nullptr in sws_getContext - Remove unused #include <libavutil/pixdesc.h> videoin main.cpp: - Early return if have_video is false after open - Inline make_video_flow_def call (remove intermediate variable) - Add grain count log line matching other nodes - Change continue to break when get_next_frame returns false - Make video_rate const - Remove double blank line before main() - Remove trailing spaces Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>