I found that the MJPEG decoder is not able to auto-detect the incoming
stream. I had to pass an AVInputFormat for the MJPEG decoder:

AVInputFormat* mjpegInput = av_find_input_format("mjpeg");
int openStatus = avformat_open_input(&fmtCtx, url, mjpegInput, 0);

This successfully opens the MJPEG stream.


On Thu, Feb 7, 2013 at 3:13 AM, Luca Barbato <[email protected]> wrote:

> On 06/02/13 16:20, Michael Rice wrote:
> > The resulting file is a collection of jpeg images separated by a MIME
> > boundary, such as the following snapshot (dumped using hexdump). After
> the
> > 12544 bytes in the first image, there is another MIME boundary.
> >
>
> Please open a bug and provide a sample file so we can check it.
>
> lu
>
> _______________________________________________
> libav-api mailing list
> [email protected]
> https://lists.libav.org/mailman/listinfo/libav-api
>
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to