Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b0628c5

Browse files
author
Clement Champetier
committedOct 17, 2014
pyTest testTranscoderDummy: rename AudioDesc to AudioCodec
Fit to new class name.
1 parent 926d5c1 commit b0628c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎test/pyTest/testTranscoderDummy.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ def testTranscodeDummyAudio():
8686
audioDesc.setFps( 25 )
8787
audioDesc.setSampleFormat( "s16" )
8888

89-
essenceDesc = av.AudioDesc( "pcm_s16le" )
90-
essenceDesc.setAudioParameters( audioDesc )
91-
transcoder.add( "", 0, "wave24b48kmono", essenceDesc )
89+
audioCodec = av.AudioCodec( av.eCodecTypeEncoder, "pcm_s16le" )
90+
audioCodec.setAudioParameters( audioDesc )
91+
transcoder.add( "", 0, "wave24b48kmono", audioCodec )
9292

9393
transcoder.init()
9494

@@ -112,9 +112,9 @@ def testTranscodeDummyVideo():
112112
imageDesc.setDar( 1, 1 )
113113
inputPixel = av.Pixel( "yuv422p" )
114114
imageDesc.setPixel( inputPixel )
115-
essenceDesc = av.VideoDesc( "mpeg2video" )
116-
essenceDesc.setImageParameters( imageDesc )
117-
transcoder.add( "", 0, "dnxhd120", essenceDesc )
115+
videoCodec = av.VideoCodec( av.eCodecTypeEncoder, "mpeg2video" )
116+
videoCodec.setImageParameters( imageDesc )
117+
transcoder.add( "", 0, "dnxhd120", videoCodec )
118118

119119
transcoder.init()
120120

0 commit comments

Comments
 (0)
Failed to load comments.