Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9d81e08 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix Stack-use-after-scope error in C2Fuzzer"

parents 17883335 d6a59962
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -194,12 +194,12 @@ bool Codec2Fuzzer::initDecoder() {
  }

  std::vector<C2Param*> configParams;
  if (domain.value == DOMAIN_VIDEO) {
  C2StreamPictureSizeInfo::input inputSize(0u, kWidthOfVideo, kHeightOfVideo);
    configParams.push_back(&inputSize);
  } else if (domain.value == DOMAIN_AUDIO) {
  C2StreamSampleRateInfo::output sampleRateInfo(0u, kSamplingRateOfAudio);
  C2StreamChannelCountInfo::output channelCountInfo(0u, kChannelsOfAudio);
  if (domain.value == DOMAIN_VIDEO) {
    configParams.push_back(&inputSize);
  } else if (domain.value == DOMAIN_AUDIO) {
    configParams.push_back(&sampleRateInfo);
    configParams.push_back(&channelCountInfo);
  }