Commit 09b8e97a authored by Alex Agranovsky's avatar Alex Agranovsky Committed by Michael Niedermayer

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

Fixes 5023
Signed-off-by: 's avatarAlex Agranovsky <alex@sighthound.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a573e6c1
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment