diff options
author | Marton Balint <cus@passwd.hu> | 2024-05-05 21:31:47 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2024-05-07 23:38:05 +0200 |
commit | 8d92f59d117a19e910574c0fe3c67e71dfe11b72 (patch) | |
tree | 5f76461c85c23bdd301f868729dfff9df0805d79 /COPYING.LGPLv3 | |
parent | 39ce8a96958fdc80ebc549ab7525b06dadf8bbbd (diff) | |
download | ffmpeg-8d92f59d117a19e910574c0fe3c67e71dfe11b72.tar.gz |
avformat/file: fail for non-numerical arguments to pipe:
Before this patch, the implementation of pipe: inputs/outputs would
silently fall back to stdin/stdout for any argument not successfully
parsed by strtol().
This patch introduces an explicit error for any non-numerical arguments,
which should avoid user confusion as in #10977.
New behavior:
$ cat /tmp/video.mkv | ./ffmpeg -i pipe:aa -acodec copy -vcodec copy -f matroska pipe:1 | cat >/tmp/out.mkv
[pipe @ 0x5618c7bcf740] Non-numerical argument "aa" to pipe:
[in#0 @ 0x5618c7bced00] Error opening input: Invalid argument
Error opening input file pipe:aa.
Error opening input files: Invalid argument
Based on the patch of Nils Goroll <nils.goroll@uplex.de>.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'COPYING.LGPLv3')
0 files changed, 0 insertions, 0 deletions