diff --git a/GPMF_parser.c b/GPMF_parser.c index 42fd33d..f909a6a 100644 --- a/GPMF_parser.c +++ b/GPMF_parser.c @@ -1448,7 +1448,7 @@ GPMF_ERR GPMF_ScaledData(GPMF_stream *ms, void *buffer, uint32_t buffersize, uin if (remaining_sample_size < sample_size * read_samples) { - return GPMF_ERROR_MEMORY; + ret = GPMF_ERROR_MEMORY; goto cleanup; } }