Skip to content

Commit

Permalink
test: prevent AV1Encoder symbol clash with test class (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaha877 authored Sep 16, 2024
1 parent ad16a28 commit cd3ac82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/TestAV1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ struct EncodingParams
int bframes;
};

class AV1Encoder
class TestAV1Encoder
{
public:
AV1Encoder(EncodingParams params, int numPackets) :
TestAV1Encoder(EncodingParams params, int numPackets) :
numPackets(numPackets),
width(params.width),
height(params.height),
Expand All @@ -40,7 +40,7 @@ class AV1Encoder
}
}

~AV1Encoder()
~TestAV1Encoder()
{
if (pic)
aom_img_free(pic);
Expand Down Expand Up @@ -182,7 +182,7 @@ void runAV1Test(const char *codecName, const EncodingParams &params, int numPack
uint64_t frameTime = 1E6 / params.fps;
VideoCodec::Type type = VideoCodec::GetCodecForName(codecName);

AV1Encoder av1Enc(params, numPackets);
TestAV1Encoder av1Enc(params, numPackets);
av1Enc.generateAV1EncodedPackets();
auto packets = av1Enc.getEncodedPackets();

Expand Down

0 comments on commit cd3ac82

Please sign in to comment.