Skip to content

Commit 88985d0

Browse files
committed
Merge pull request #496 from cchampet/fix_AudioVideoFixNegativeOffset
AudioVideo: up to v4.5 * Fix audio negative offset. * get bitDepth of input from avtranscoder.
2 parents 4d08fe1 + 2720beb commit 88985d0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Submodule avTranscoder updated 41 files

plugins/image/io/AudioVideo/src/mainEntry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define OFXPLUGIN_VERSION_MAJOR 4
2-
#define OFXPLUGIN_VERSION_MINOR 4
2+
#define OFXPLUGIN_VERSION_MINOR 5
33

44
#include <tuttle/plugin/Plugin.hpp>
55
#include "reader/AVReaderPluginFactory.hpp"

plugins/image/io/AudioVideo/src/reader/AVReaderProcess.tcc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ void AVReaderProcess<View>::multiThreadProcessImages( const OfxRectI& procWindow
5353
BOOST_ASSERT( procWindowRoW == this->_dstPixelRod );
5454

5555
avtranscoder::PixelProperties pixel( _plugin._inputFile->getProperties().getVideoProperties().at( _plugin._paramVideoStreamIndex->getValue() ).getPixelProperties() );
56-
size_t components = pixel.getNbComponents();
57-
size_t bitDepth = 8; // @todo: waiting for getMaxBitPerChannel() in avTranscoder
56+
const size_t components = pixel.getNbComponents();
57+
const size_t bitDepth = pixel.getMaxNbBitsInChannels();
5858

5959
switch( bitDepth )
6060
{

0 commit comments

Comments
 (0)