Commit bd67e0f2 authored by Mark Harris's avatar Mark Harris Committed by Timothy B. Terriberry
Browse files

Relax JPEG check to allow EXIF metadata

parent 67273ef3
......@@ -454,8 +454,7 @@ int opus_tags_get_track_gain(const OpusTags *_tags,int *_gain_q8){
static int op_is_jpeg(const unsigned char *_buf,size_t _buf_sz){
return _buf_sz>=11&&memcmp(_buf,"\xFF\xD8\xFF\xE0",4)==0
return _buf_sz>=3&&memcmp(_buf,"\xFF\xD8\xFF",3)==0;
/*Tries to extract the width, height, bits per pixel, and palette size of a
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment