mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
a573e6c103
commit
09b8e97ab6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue