]> git.sesse.net Git - ffmpeg/commit
avformat/mpjpegdec: make sure we seek back to the ensured buffer
authorMarton Balint <cus@passwd.hu>
Sat, 26 Sep 2020 18:36:25 +0000 (20:36 +0200)
committerMarton Balint <cus@passwd.hu>
Fri, 9 Oct 2020 19:07:18 +0000 (21:07 +0200)
commit1490a682dc06d868c5170635cad92948c7f28cfb
tree0ea02bd33a9a28b2e5dd89f576ec83d42c8195ca
parent2933ee8ff09f3a9e2ae313da80b0a510474f53f4
avformat/mpjpegdec: make sure we seek back to the ensured buffer

It was possible for the old code to seek back before the most recently read
data if start of a new multipart was across read boundaries. Now we read some
small sections multiple times to avoid this, but that is OK.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/mpjpegdec.c