diff options
Diffstat (limited to 'src/lib/util/chdcodec.c')
-rw-r--r-- | src/lib/util/chdcodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/chdcodec.c b/src/lib/util/chdcodec.c index 3bf1d6dfd63..8a43c79ea80 100644 --- a/src/lib/util/chdcodec.c +++ b/src/lib/util/chdcodec.c @@ -1626,7 +1626,7 @@ void chd_avhuff_compressor::postinit() // extract the info int fps, fpsfrac, width, height, interlaced, channels, rate; - if (sscanf(metadata, AV_METADATA_FORMAT, &fps, &fpsfrac, &width, &height, &interlaced, &channels, &rate) != 7) + if (sscanf(metadata.c_str(), AV_METADATA_FORMAT, &fps, &fpsfrac, &width, &height, &interlaced, &channels, &rate) != 7) throw CHDERR_INVALID_METADATA; // compute the bytes per frame |