Hi,
I am trying to use a function from ffmpeg library(A linux based decoder-encoder)
This function has an input like "const char *filename"
I am trying to call it with a buffer(unsigned char *buff)
So, I created a pipe, and wrote my buffer to it:
Code:
int my_pipe[2];
if(pipe(my_pipe) == -1)
{ perror("pipe call error");
return -1;
}
write(my_pipe[1],buff,buff_size);
now, is there a way that instead of "filename", I pass my pipe to this function to read from?
(An equivalent question can be, how to call `fopen` using a file descriptor?)