Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a std::runtime_error if aac enc init fails. #17

Merged
merged 2 commits into from
Aug 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/mp4_encode_sb_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,14 @@ namespace gr {
GR_LOG_INFO(d_logger, "AAC enc init succeeded");
} else {
GR_LOG_ERROR(d_logger, "AAC enc init failed");
throw std::runtime_error("AAC enc init failed");
}
// check encoder status
if (aacEncInfo(d_aac_encoder, &info) != AACENC_OK) {
GR_LOG_ERROR(d_logger, "Unable to get the encoder info");
throw std::runtime_error("AAC enc init failed");
}

// set input size (number of items per channel(in this case one item is a int16_t))
d_input_size = info.frameLength;
GR_LOG_INFO(d_logger, format("AAC Encoding: framelen = %d") % info.frameLength);
Expand Down