diff options
| author | Mirela Rabulea <[email protected]> | 2021-03-11 01:28:50 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-03-22 10:39:30 +0100 |
| commit | ccbea178db47bf4a111ee97c0d77678818563a93 (patch) | |
| tree | d6862edb6878e7a9e7470d95dfe5be844d6b9c38 /tools/perf/scripts/python/bin | |
| parent | b8035f7988a82cbbabf1009b9f3234ff2431f8a4 (diff) | |
media: Quit parsing stream if doesn't start with SOI
In the case we get an invalid stream, such as from v4l2-compliance
streaming test, jpeg_next_marker will end up parsing the entire
stream. The standard describes the high level syntax of a jpeg
as starting with SOI, ending with EOI, so return error if the very
first 2 bytes are not SOI.
Signed-off-by: Mirela Rabulea <[email protected]>
Reviewed-by: Philipp Zabel <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions