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

prevent AV1Encoder symbol clash with test class #345

Merged
merged 1 commit into from
Sep 16, 2024
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
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
Loading