Skip to content

Commit 7cab865

Browse files
author
Clement Champetier
committed
pyTest: fix audioStream property sampleFormat
Because now we get string which correspond to sampleFormat from av_get_sample_fmt_name (ffmpeg function).
1 parent 932707b commit 7cab865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/pyTest/testTranscoderTranscode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def testTranscodeWave24b48kmono():
2929

3030
assert_equals( "pcm_s24le", dst_audioStream.codecName )
3131
assert_equals( "PCM signed 24-bit little-endian", dst_audioStream.codecLongName )
32-
assert_equals( "signed 32 bits", dst_audioStream.sampleFormat )
32+
assert_equals( "s32", dst_audioStream.sampleFormat )
3333
assert_equals( 48000, dst_audioStream.sampleRate )
3434
# assert_equals( "1 channels", dst_audioStream.channelLayout ) # '1 channels' != '0 channels'
3535
assert_equals( 1, dst_audioStream.channels )
@@ -58,7 +58,7 @@ def testTranscodeWave16b48kmono():
5858

5959
assert_equals( "pcm_s16le", dst_audioStream.codecName )
6060
assert_equals( "PCM signed 16-bit little-endian", dst_audioStream.codecLongName )
61-
assert_equals( "signed 16 bits", dst_audioStream.sampleFormat )
61+
assert_equals( "s16", dst_audioStream.sampleFormat )
6262
assert_equals( 48000, dst_audioStream.sampleRate )
6363
# assert_equals( "1 channels", dst_audioStream.channelLayout ) # '1 channels' != '0 channels'
6464
assert_equals( 1, dst_audioStream.channels )

0 commit comments

Comments
 (0)