1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-13 02:35:50 +02:00

lavf/mpjpeg: Trim quotes on MIME boundary, if present.

Fixes 5023

Signed-off-by: Alex Agranovsky <alex@sighthound.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Alex Agranovsky 2016-02-12 12:59:29 -05:00 committed by Michael Niedermayer
parent a573e6c103
commit 09b8e97ab6

View File

@ -277,6 +277,13 @@ static char* mpjpeg_get_boundary(AVIOContext* pb)
len = end - start - 1;
else
len = strlen(start);
/* some endpoints may enclose the boundary
in Content-Type in quotes */
if ( len>2 && *start == '"' && start[len-1] == '"' ) {
start++;
len -= 2;
}
res = av_strndup(start, len);
break;
}