[libav-devel] [PATCH] mpjpeg: Initial implementation

Luca Barbato lu_zero at gentoo.org
Thu Jun 4 16:31:27 CEST 2015


On 04/06/15 16:29, Vittorio Giovara wrote:
> On Wed, Jun 3, 2015 at 9:17 PM, Luca Barbato <lu_zero at gentoo.org> wrote:
>> Support only streams with Content-Length.
>>
>> Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
>> ---
>>
>> Now w/out a custom get_line.
>>
>>  libavformat/Makefile     |   1 +
>>  libavformat/allformats.c |   2 +-
>>  libavformat/mpjpegdec.c  | 223 +++++++++++++++++++++++++++++++++++++++++++++++
>>  3 files changed, 225 insertions(+), 1 deletion(-)
>>  create mode 100644 libavformat/mpjpegdec.c
> 
> version.h, Changelog and probably doc missing

I'll add version and changelog on push.

> 
>> diff --git a/libavformat/Makefile b/libavformat/Makefile
>> index 0323ad5..21c4e5e 100644
>> --- a/libavformat/Makefile
>> +++ b/libavformat/Makefile
>> +static int mpjpeg_read_header(AVFormatContext *s)
>> +{
>> +    AVStream *st;
>> +    char boundary[70 + 2 + 1];
>> +    int64_t pos = avio_tell(s->pb);
>> +    int ret;
>> +
>> +
> 
> nit: stray line
> 
>> +
>> +    if (!found_content_type || size < 0) {
>> +        return AVERROR_INVALIDDATA;
>> +    }
> 
> nit: unneeded { }
> 

Sure.



More information about the libav-devel mailing list