Describe the bug
同一视频,MinGW的xavs2.exe与VC++的xavs2.exe编码输出不同(请见附件)。
只有VC++的xavs2.exe的输出在ffplay中正常无撕裂。xavs2在交叉编译时,输出少数错误字节。
To Reproduce
1.编译生成xavs2
MinGW编译生成xavs2_x64_mingw.exe(见附件)。VS2K19编译生成xavs2_x64_vc2k19.exe(见附件)。
2.编码AVS视频:
xavs2_x64_vc2k19.exe -p InputFile=BQMall_832x480_60_ra.yuv --FramesToBeEncoded=500 --fps=50 --SourceWidth=832 --SourceHeight=480 --InputSampleBitDepth=8 --SampleBitDepth=8 --thread_frames=1 --thread_rows=1 --preset=0 --initial_qp=32 --OutputFile=BQMall_832x480_60_ra_vc2k19.avs
xavs2_x64_mingw.exe -p InputFile=BQMall_832x480_60_ra.yuv --FramesToBeEncoded=500 --fps=50 --SourceWidth=832 --SourceHeight=480 --InputSampleBitDepth=8 --SampleBitDepth=8 --thread_frames=1 --thread_rows=1 --preset=0 --initial_qp=32 --OutputFile=BQMall_832x480_60_ra_mingw.avs
3.播放视频。
ffplay BQMall_832x480_60_ra_vc2k19.avs 正常
ffplay BQMall_832x480_60_ra_mingw.avs 画面撕裂正常(见附件)
4.比较输出文件内容,可见少数字节不同:
I:\temp\avs>comp BQMall_832x480_60_ra_vc2k19.avs BQMall_832x480_60_ra_mingw.avs
Comparing BQMall_832x480_60_ra_vc2k19.avs and BQMall_832x480_60_ra_mingw.avs...
Compare error at OFFSET 972A
file1 = 45
file2 = 46
Compare error at OFFSET 972B
file1 = A4
file2 = 24
Compare error at OFFSET A365
file1 = 45
file2 = 46
Compare error at OFFSET A366
file1 = A8
file2 = 28
Compare error at OFFSET DA1F
file1 = 45
file2 = 46
Compare error at OFFSET DA20
file1 = C1
file2 = 41
Compare error at OFFSET 126C3
file1 = 45
file2 = 46
Compare error at OFFSET 126C4
file1 = A8
file2 = 28
Compare error at OFFSET 184D6
file1 = 45
file2 = 46
Compare error at OFFSET 184D7
file1 = A8
file2 = 28
10 mismatches - ending compare
Expected behavior
两个输出文件内容相同,且正常播放,
Desktop (please complete the following information):
- OS: Window 10(x64)先启用Linux子系统,再从微软商店安装Ubuntu到该Windows.
- Compiler Visual Studio 2019, x86_64-w64-mingw32-gcc (GCC) 10.1.0
- yasm 1.3.0
Additional context
见附件

附件_exe_avs.zip
Describe the bug
同一视频,MinGW的xavs2.exe与VC++的xavs2.exe编码输出不同(请见附件)。
只有VC++的xavs2.exe的输出在ffplay中正常无撕裂。xavs2在交叉编译时,输出少数错误字节。
To Reproduce
1.编译生成xavs2
MinGW编译生成xavs2_x64_mingw.exe(见附件)。VS2K19编译生成xavs2_x64_vc2k19.exe(见附件)。
2.编码AVS视频:
xavs2_x64_vc2k19.exe -p InputFile=BQMall_832x480_60_ra.yuv --FramesToBeEncoded=500 --fps=50 --SourceWidth=832 --SourceHeight=480 --InputSampleBitDepth=8 --SampleBitDepth=8 --thread_frames=1 --thread_rows=1 --preset=0 --initial_qp=32 --OutputFile=BQMall_832x480_60_ra_vc2k19.avs
xavs2_x64_mingw.exe -p InputFile=BQMall_832x480_60_ra.yuv --FramesToBeEncoded=500 --fps=50 --SourceWidth=832 --SourceHeight=480 --InputSampleBitDepth=8 --SampleBitDepth=8 --thread_frames=1 --thread_rows=1 --preset=0 --initial_qp=32 --OutputFile=BQMall_832x480_60_ra_mingw.avs
3.播放视频。
ffplay BQMall_832x480_60_ra_vc2k19.avs 正常
ffplay BQMall_832x480_60_ra_mingw.avs 画面撕裂正常(见附件)
4.比较输出文件内容,可见少数字节不同:
I:\temp\avs>comp BQMall_832x480_60_ra_vc2k19.avs BQMall_832x480_60_ra_mingw.avs
Comparing BQMall_832x480_60_ra_vc2k19.avs and BQMall_832x480_60_ra_mingw.avs...
Compare error at OFFSET 972A
file1 = 45
file2 = 46
Compare error at OFFSET 972B
file1 = A4
file2 = 24
Compare error at OFFSET A365
file1 = 45
file2 = 46
Compare error at OFFSET A366
file1 = A8
file2 = 28
Compare error at OFFSET DA1F
file1 = 45
file2 = 46
Compare error at OFFSET DA20
file1 = C1
file2 = 41
Compare error at OFFSET 126C3
file1 = 45
file2 = 46
Compare error at OFFSET 126C4
file1 = A8
file2 = 28
Compare error at OFFSET 184D6
file1 = 45
file2 = 46
Compare error at OFFSET 184D7
file1 = A8
file2 = 28
10 mismatches - ending compare
Expected behavior
两个输出文件内容相同,且正常播放,
Desktop (please complete the following information):
Additional context

见附件
附件_exe_avs.zip