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

Commit c7d0495b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix Stack-use-after-scope error in C2Fuzzer" am: b9d81e08

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1761246

Change-Id: I624d30dbd43d9b31a16f70f6070bc551664f8b16
parents 921a3dea b9d81e08
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);
  }