mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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 {
|
||||
if (!memcmp(start, mpjpeg->searchstr, mpjpeg->searchstr_len)) {
|
||||
// got the boundary! rewind the stream
|
||||
avio_seek(s->pb, -(len-2), SEEK_CUR);
|
||||
pkt->size -= (len-2);
|
||||
avio_seek(s->pb, -len, SEEK_CUR);
|
||||
pkt->size -= len;
|
||||
return pkt->size;
|
||||
}
|
||||
len--;
|
||||
|
Loading…
Reference in New Issue
Block a user