[FFmpeg-devel] [PATCH] avformat/file: add fd protocol

Anton Khirnov anton at khirnov.net
Fri Dec 9 16:31:47 EET 2022


Quoting Zhao Zhili (2022-11-18 19:48:02)
> From: Zhao Zhili <zhilizhao at tencent.com>
> 
> Unlike the pipe protocol, fd protocol has seek support if it
> corresponding to a regular file.
> ---
> Sometimes it's the only way to access files via file descriptor, e.g.,
> requesting a shared file on Android:
> https://developer.android.com/training/secure-file-sharing/request-file
> 

Wouldn't dup()ing the file descriptor be safer?

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list