lavf/mpjpeg: do not include CRLF preceding boundary as part of the returned frame
Signed-off-by: Alex Agranovsky <alex@sighthound.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
5edd1f62ca
commit
ddda2cc43c
@ -351,8 +351,8 @@ static int mpjpeg_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
do {
|
do {
|
||||||
if (!memcmp(start, mpjpeg->searchstr, mpjpeg->searchstr_len)) {
|
if (!memcmp(start, mpjpeg->searchstr, mpjpeg->searchstr_len)) {
|
||||||
// got the boundary! rewind the stream
|
// got the boundary! rewind the stream
|
||||||
avio_seek(s->pb, -(len-2), SEEK_CUR);
|
avio_seek(s->pb, -len, SEEK_CUR);
|
||||||
pkt->size -= (len-2);
|
pkt->size -= len;
|
||||||
return pkt->size;
|
return pkt->size;
|
||||||
}
|
}
|
||||||
len--;
|
len--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user