[FFmpeg-devel] different output in threaded code - linux vs mingw
Gianluigi Tiesi
mplayer
Tue Oct 7 03:24:07 CEST 2008
Hi all,
I'm playing with make test, and I have found a non deterministic
output in threaded code on mingw.
I run:
./ffmpeg_g -y -flags +bitexact -dct fastint -idct simple -sws_flags
+accurate_rnd+bitexact -b 500k -flags +mv4+part+aic -trellis 1 -mbd bits
-ps 200 -bf 2 -f image2 -vcodec pgmyuv -i tests/vsynth2/%02d.pgm -an
-vcodec mpeg4 -threads 2 ./tests/data/a-mpeg4-thread.avi
and I get different outputs on mingw at each run, while
the output is always the same on linux.
I've tested both using pthread and win32 native threads
The attached files show the output of these vars in MPV_encode_picture:
((struct MpegEncContext *) avctx->priv_data)->qscale
((struct MpegEncContext *) avctx->priv_data)->current_picture.quality
for mingw I've made 3 runs and I got 3 different values
I also get bogus value for qscale if the printf is in a different
place (2103561886 instead of -1)
does it rely on some uinint data?
Regards
--
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-------------- next part --------------
0 0
0 0
0 0
5 542
2 236
3 296
3 296
2 236
3 296
3 296
2 236
3 318
3 318
2 203
3 296
3 296
3 408
5 609
6 761
5 635
9 1060
9 1060
6 713
8 988
8 988
5 631
7 790
7 790
7 848
10 1144
10 1227
7 867
9 1109
9 1109
8 895
10 1154
10 1154
6 738
8 923
8 923
8 965
11 1277
11 1295
8 968
10 1214
10 1214
8 972
10 1221
10 1221
7 781
8 977
8 977
8 935
-------------- next part --------------
0 0
0 0
0 0
5 542
2 236
3 296
3 296
2 236
3 296
3 296
2 236
3 328
3 328
2 209
3 296
3 296
4 415
5 617
7 771
5 630
9 1040
9 1040
6 716
8 1001
8 1001
5 640
7 801
7 801
7 863
10 1155
11 1261
8 891
10 1150
10 1150
8 917
10 1180
10 1180
6 754
8 944
8 944
8 997
11 1298
11 1347
8 1000
11 1254
11 1254
9 1010
11 1278
11 1278
7 817
9 1023
9 1023
8 954
-------------- next part --------------
0 0
0 0
0 0
5 542
2 236
3 296
3 296
2 236
3 296
3 296
2 236
3 332
3 332
2 212
3 296
3 296
4 417
5 620
7 775
5 632
9 1044
9 1044
6 717
8 1000
8 1000
5 639
7 800
7 800
7 862
10 1154
11 1256
8 887
10 1140
10 1140
8 912
10 1172
10 1172
6 749
8 938
8 938
8 990
11 1292
11 1337
8 993
11 1246
11 1246
9 1005
11 1273
11 1273
7 814
9 1018
9 1018
8 950
-------------- next part --------------
0 0
0 0
0 0
5 542
2 236
3 296
3 296
2 236
3 296
3 296
2 236
3 330
3 330
2 210
3 296
3 296
4 416
5 618
7 772
5 632
9 1044
9 1044
6 719
9 1005
9 1005
5 642
7 804
7 804
7 865
10 1158
11 1263
8 893
10 1152
10 1152
8 920
10 1184
10 1184
6 757
8 947
8 947
8 998
11 1301
11 1348
8 999
11 1251
11 1251
9 1010
11 1277
11 1277
7 817
9 1022
9 1022
8 954
More information about the ffmpeg-devel
mailing list