On 04/06/15 16:29, Vittorio Giovara wrote:
> On Wed, Jun 3, 2015 at 9:17 PM, Luca Barbato <[email protected]> wrote:
>> Support only streams with Content-Length.
>>
>> Signed-off-by: Luca Barbato <[email protected]>
>> ---
>>
>> 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.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel