Skip to content

Commit

Permalink
VIDEO: Remove unused parameter to VideoSampleDesc::initCodec()
Browse files Browse the repository at this point in the history
  • Loading branch information
clone2727 committed Jun 13, 2017
1 parent 840ad67 commit 3f006b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/video/quicktime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void QuickTimeDecoder::load() {

// Initialize video codec, if present
for (size_t i = 0; i < _tracks[_videoTrackIndex]->sampleDescs.size(); i++)
dynamic_cast<VideoSampleDesc &>(*_tracks[_videoTrackIndex]->sampleDescs[i]).initCodec(*_surface);
dynamic_cast<VideoSampleDesc &>(*_tracks[_videoTrackIndex]->sampleDescs[i]).initCodec();
}

QuickTimeDecoder::SampleDesc *QuickTimeDecoder::readSampleDesc(Track *track, uint32 format) {
Expand Down Expand Up @@ -1024,7 +1024,7 @@ QuickTimeDecoder::VideoSampleDesc::VideoSampleDesc(QuickTimeDecoder::Track *pare
QuickTimeDecoder::VideoSampleDesc::~VideoSampleDesc() {
}

void QuickTimeDecoder::VideoSampleDesc::initCodec(Graphics::Surface &UNUSED(surface)) {
void QuickTimeDecoder::VideoSampleDesc::initCodec() {
if (_codecTag == MKTAG('m', 'p', '4', 'v')) {
Common::UString videoType;

Expand Down
2 changes: 1 addition & 1 deletion src/video/quicktime.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class QuickTimeDecoder : public VideoDecoder {
VideoSampleDesc(Track *parentTrack, uint32 codecTag);
~VideoSampleDesc();

void initCodec(Graphics::Surface &surface);
void initCodec();

// TODO: Make private in the long run
uint16 _bitsPerSample;
Expand Down

0 comments on commit 3f006b3

Please sign in to comment.