[FFmpeg-devel] [PATCH] avformat/file: add fd protocol
Zhao Zhili
quinkblack at foxmail.com
Sat Dec 10 15:45:17 EET 2022
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Anton Khirnov
> Sent: 2022年12月9日 22:32
> To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
> Cc: Zhao Zhili <zhilizhao at tencent.com>
> Subject: Re: [FFmpeg-devel] [PATCH] avformat/file: add fd protocol
>
> 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?
Yes, I have thought that. The question is why pipe protocol doesn't do that.
If there is no reason, I can update the patch then improve the pipe protocol.
>
> --
> Anton Khirnov
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list