Unverified Commit 802597c5 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Fixes uninitialized seen_file_icons

parent 7fd2315d
......@@ -88,6 +88,7 @@ OggOpusComments *ope_comments_create() {
libopus_str = opus_get_version_string();
snprintf(vendor_str, sizeof(vendor_str), "%s, %s %s", libopus_str, PACKAGE_NAME, PACKAGE_VERSION);
_ope_comment_init(&c->comment, &c->comment_length, vendor_str);
c->seen_file_icons = 0;
if (c->comment == NULL) {
return NULL;
......@@ -251,10 +251,6 @@ char *_ope_parse_picture_specification(const char *filename, int picture_type, c
size_t data_length;
size_t b64_length;
*error = OPE_OK;
/*If a filename has a '|' in it, there's no way we can distinguish it from a
full specification just from the spec string.
Instead, try to open the file.
If it exists, the user probably meant the file.*/
if (picture_type < 0) picture_type=3;
if (picture_type > 20) {
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