This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 752faebaa6ec8985335d2afb151e6cdcd2e1a869 Author: Jun Zhao <[email protected]> AuthorDate: Sun Mar 8 22:48:46 2026 +0800 Commit: toots <[email protected]> CommitDate: Wed Mar 18 02:08:09 2026 +0000 doc/examples/vaapi_encode: open raw YUV input in binary mode fopen() with "r" opens the file in text mode, which on Windows translates \r\n to \n, corrupting raw NV12 pixel data. Use "rb" to open in binary mode, matching the output file which already uses "w+b". Signed-off-by: Jun Zhao <[email protected]> --- doc/examples/vaapi_encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/vaapi_encode.c b/doc/examples/vaapi_encode.c index 330a6524ef..d4381776ca 100644 --- a/doc/examples/vaapi_encode.c +++ b/doc/examples/vaapi_encode.c @@ -118,7 +118,7 @@ int main(int argc, char *argv[]) height = atoi(argv[2]); size = width * height; - if (!(fin = fopen(argv[3], "r"))) { + if (!(fin = fopen(argv[3], "rb"))) { fprintf(stderr, "Fail to open input file : %s\n", strerror(errno)); return -1; } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
