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>
pull/175/head
Alex Agranovsky 9 years ago committed by Michael Niedermayer
parent a573e6c103
commit 09b8e97ab6
  1. 7
      libavformat/mpjpegdec.c

@ -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…
Cancel
Save