mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-01-12 00:06:51 +08:00
swscale/tests: Fix fate-sws-ops-list on Windows
Set stdout to binary mode, to avoid platform specific differences in the output that is hashed.
This commit is contained in:
@@ -22,6 +22,11 @@
|
||||
#include "libswscale/ops.h"
|
||||
#include "libswscale/format.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <io.h>
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
static int run_test(SwsContext *const ctx, AVFrame *frame,
|
||||
const AVPixFmtDescriptor *const src_desc,
|
||||
const AVPixFmtDescriptor *const dst_desc)
|
||||
@@ -73,6 +78,10 @@ int main(int argc, char **argv)
|
||||
{
|
||||
int ret = 1;
|
||||
|
||||
#ifdef _WIN32
|
||||
_setmode(_fileno(stdout), _O_BINARY);
|
||||
#endif
|
||||
|
||||
SwsContext *ctx = sws_alloc_context();
|
||||
AVFrame *frame = av_frame_alloc();
|
||||
if (!ctx || !frame)
|
||||
|
||||
Reference in New Issue
Block a user