[FFmpeg-devel] avformat_open_input

Stefano Sabatini stefasab at gmail.com
Thu Oct 31 10:24:24 CET 2013


On date Thursday 2013-10-31 13:52:40 +0800, Liangcheng Fu encoded:
> i'm in the process of studying the frame work of ffmpeg and i encountered a
> problem about understanding the source part which in function
> "avformat_open_input" in libavformat:
> 
> /* check filename in case an image number is expected */
> 
>    if (s->iformat->flags & AVFMT_NEEDNUMBER) {
> 
>        if (!av_filename_number_test(filename)) {
> 
>            ret = AVERROR(EINVAL);
> 
>            goto fail;
>        }

> what does this part mean and why an image number is expected?
> any advice will be appreciated!
> Thank you!

This is an hack meant for the image2 demuxer.
-- 
FFmpeg = Faithless & Freak Minimal Prodigious Encoding/decoding Guide


More information about the ffmpeg-devel mailing list