Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/theora/ogg_theora_decoder.cpp

30 lines
556 B
C++
Raw Normal View History

2024-09-24 12:54:57 +00:00
#include "ogg_theora_decoder.h"
#include <string.h>
ifc_oggdecoder *OggDecoderFactory::CreateDecoder(const ogg_packet *packet)
{
if (packet && packet->packet && packet->bytes >= 42)
{
if (!memcmp(packet->packet + 1, "theora", 6))
return new OggTheoraDecoder(packet);
}
return 0;
}
#define CBCLASS OggDecoderFactory
START_DISPATCH;
CB(DISP_CREATEDECODER, CreateDecoder)
END_DISPATCH;
#undef CBCLASS
OggTheoraDecoder::OggTheoraDecoder(const ogg_packet *packet)
{
}
#define CBCLASS OggTheoraDecoder
START_DISPATCH;
END_DISPATCH;
#undef CBCLASS