Revision a828d48c

View differences:

tests/seek.regression.ref
2521 2521
ret: 0 st:-1 ts:-1.000000 flags:0
2522 2522
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:54 size:4096 flags:1
2523 2523
ret: 0 st:-1 ts:1.894167 flags:1
2524
ret:-32
2524
ret:-EOF
2525 2525
ret: 0 st: 0 ts:0.788345 flags:0
2526 2526
ret: 0 st: 0 dts:0.788345 pts:0.788345 pos:69586 size:4096 flags:1
2527 2527
ret: 0 st: 0 ts:-0.317506 flags:1
2528 2528
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:54 size:4096 flags:1
2529 2529
ret: 0 st:-1 ts:2.576668 flags:0
2530
ret:-32
2530
ret:-EOF
2531 2531
ret: 0 st:-1 ts:1.470835 flags:1
2532
ret:-32
2532
ret:-EOF
2533 2533
ret: 0 st: 0 ts:0.365011 flags:0
2534 2534
ret: 0 st: 0 dts:0.365011 pts:0.365011 pos:32248 size:4096 flags:1
2535 2535
ret: 0 st: 0 ts:-0.740839 flags:1
2536 2536
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:54 size:4096 flags:1
2537 2537
ret: 0 st:-1 ts:2.153336 flags:0
2538
ret:-32
2538
ret:-EOF
2539 2539
ret: 0 st:-1 ts:1.047503 flags:1
2540
ret:-32
2540
ret:-EOF
2541 2541
ret: 0 st: 0 ts:-0.058322 flags:0
2542 2542
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:54 size:4096 flags:1
2543 2543
ret: 0 st: 0 ts:2.835828 flags:1
2544
ret:-32
2544
ret:-EOF
2545 2545
ret: 0 st:-1 ts:1.730004 flags:0
2546
ret:-32
2546
ret:-EOF
2547 2547
ret: 0 st:-1 ts:0.624171 flags:1
2548 2548
ret: 0 st: 0 dts:0.624172 pts:0.624172 pos:55106 size:4096 flags:1
2549 2549
ret: 0 st: 0 ts:-0.481655 flags:0
2550 2550
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:54 size:4096 flags:1
2551 2551
ret: 0 st: 0 ts:2.412494 flags:1
2552
ret:-32
2552
ret:-EOF
2553 2553
ret: 0 st:-1 ts:1.306672 flags:0
2554
ret:-32
2554
ret:-EOF
2555 2555
ret: 0 st:-1 ts:0.200839 flags:1
2556 2556
ret: 0 st: 0 dts:0.200839 pts:0.200839 pos:17768 size:4096 flags:1
2557 2557
ret: 0 st: 0 ts:-0.904989 flags:0
2558 2558
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:54 size:4096 flags:1
2559 2559
ret: 0 st: 0 ts:1.989184 flags:1
2560
ret:-32
2560
ret:-EOF
2561 2561
ret: 0 st:-1 ts:0.883340 flags:0
2562 2562
ret: 0 st: 0 dts:0.883333 pts:0.883333 pos:77964 size:4096 flags:1
2563 2563
ret: 0 st:-1 ts:-0.222493 flags:1
2564 2564
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:54 size:4096 flags:1
2565 2565
ret: 0 st: 0 ts:2.671678 flags:0
2566
ret:-32
2566
ret:-EOF
2567 2567
ret: 0 st: 0 ts:1.565850 flags:1
2568
ret:-32
2568
ret:-EOF
2569 2569
ret: 0 st:-1 ts:0.460008 flags:0
2570 2570
ret: 0 st: 0 dts:0.460000 pts:0.460000 pos:40626 size:4096 flags:1
2571 2571
ret: 0 st:-1 ts:-0.645825 flags:1
......
2582 2582
ret: 0 st: 0 ts:-0.317506 flags:1
2583 2583
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:0 size:1024 flags:1
2584 2584
ret: 0 st:-1 ts:2.576668 flags:0
2585
ret:-32
2585
ret:-EOF
2586 2586
ret: 0 st:-1 ts:1.470835 flags:1
2587 2587
ret: 0 st: 0 dts:1.470839 pts:1.470839 pos:32432 size:1024 flags:1
2588 2588
ret: 0 st: 0 ts:0.364989 flags:0
......
2590 2590
ret: 0 st: 0 ts:-0.740816 flags:1
2591 2591
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:0 size:1024 flags:1
2592 2592
ret: 0 st:-1 ts:2.153336 flags:0
2593
ret:-32
2593
ret:-EOF
2594 2594
ret: 0 st:-1 ts:1.047503 flags:1
2595 2595
ret: 0 st: 0 dts:1.047483 pts:1.047483 pos:23097 size:1024 flags:1
2596 2596
ret: 0 st: 0 ts:-0.058322 flags:0
2597 2597
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:0 size:1024 flags:1
2598 2598
ret: 0 st: 0 ts:2.835828 flags:1
2599
ret:-32
2599
ret:-EOF
2600 2600
ret: 0 st:-1 ts:1.730004 flags:0
2601 2601
ret: 0 st: 0 dts:1.730023 pts:1.730023 pos:38147 size:1024 flags:1
2602 2602
ret: 0 st:-1 ts:0.624171 flags:1
......
2604 2604
ret: 0 st: 0 ts:-0.481678 flags:0
2605 2605
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:0 size:1024 flags:1
2606 2606
ret: 0 st: 0 ts:2.412517 flags:1
2607
ret:-32
2607
ret:-EOF
2608 2608
ret: 0 st:-1 ts:1.306672 flags:0
2609 2609
ret: 0 st: 0 dts:1.306667 pts:1.306667 pos:28812 size:1024 flags:1
2610 2610
ret: 0 st:-1 ts:0.200839 flags:1
......
2618 2618
ret: 0 st:-1 ts:-0.222493 flags:1
2619 2619
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:0 size:1024 flags:1
2620 2620
ret: 0 st: 0 ts:2.671655 flags:0
2621
ret:-32
2621
ret:-EOF
2622 2622
ret: 0 st: 0 ts:1.565850 flags:1
2623 2623
ret: 0 st: 0 dts:1.565850 pts:1.565850 pos:34527 size:1024 flags:1
2624 2624
ret: 0 st:-1 ts:0.460008 flags:0
......
2686 2686
ret: 0 st:-1 ts:-1.000000 flags:0
2687 2687
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:24 size:4096 flags:1
2688 2688
ret: 0 st:-1 ts:1.894167 flags:1
2689
ret:-32
2689
ret:-EOF
2690 2690
ret: 0 st: 0 ts:0.788345 flags:0
2691 2691
ret: 0 st: 0 dts:0.788345 pts:0.788345 pos:69556 size:4096 flags:1
2692 2692
ret: 0 st: 0 ts:-0.317506 flags:1
2693 2693
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:24 size:4096 flags:1
2694 2694
ret: 0 st:-1 ts:2.576668 flags:0
2695
ret:-32
2695
ret:-EOF
2696 2696
ret: 0 st:-1 ts:1.470835 flags:1
2697
ret:-32
2697
ret:-EOF
2698 2698
ret: 0 st: 0 ts:0.365011 flags:0
2699 2699
ret: 0 st: 0 dts:0.365011 pts:0.365011 pos:32218 size:4096 flags:1
2700 2700
ret: 0 st: 0 ts:-0.740839 flags:1
2701 2701
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:24 size:4096 flags:1
2702 2702
ret: 0 st:-1 ts:2.153336 flags:0
2703
ret:-32
2703
ret:-EOF
2704 2704
ret: 0 st:-1 ts:1.047503 flags:1
2705
ret:-32
2705
ret:-EOF
2706 2706
ret: 0 st: 0 ts:-0.058322 flags:0
2707 2707
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:24 size:4096 flags:1
2708 2708
ret: 0 st: 0 ts:2.835828 flags:1
2709
ret:-32
2709
ret:-EOF
2710 2710
ret: 0 st:-1 ts:1.730004 flags:0
2711
ret:-32
2711
ret:-EOF
2712 2712
ret: 0 st:-1 ts:0.624171 flags:1
2713 2713
ret: 0 st: 0 dts:0.624172 pts:0.624172 pos:55076 size:4096 flags:1
2714 2714
ret: 0 st: 0 ts:-0.481655 flags:0
2715 2715
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:24 size:4096 flags:1
2716 2716
ret: 0 st: 0 ts:2.412494 flags:1
2717
ret:-32
2717
ret:-EOF
2718 2718
ret: 0 st:-1 ts:1.306672 flags:0
2719
ret:-32
2719
ret:-EOF
2720 2720
ret: 0 st:-1 ts:0.200839 flags:1
2721 2721
ret: 0 st: 0 dts:0.200839 pts:0.200839 pos:17738 size:4096 flags:1
2722 2722
ret: 0 st: 0 ts:-0.904989 flags:0
2723 2723
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:24 size:4096 flags:1
2724 2724
ret: 0 st: 0 ts:1.989184 flags:1
2725
ret:-32
2725
ret:-EOF
2726 2726
ret: 0 st:-1 ts:0.883340 flags:0
2727 2727
ret: 0 st: 0 dts:0.883333 pts:0.883333 pos:77934 size:4096 flags:1
2728 2728
ret: 0 st:-1 ts:-0.222493 flags:1
2729 2729
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:24 size:4096 flags:1
2730 2730
ret: 0 st: 0 ts:2.671678 flags:0
2731
ret:-32
2731
ret:-EOF
2732 2732
ret: 0 st: 0 ts:1.565850 flags:1
2733
ret:-32
2733
ret:-EOF
2734 2734
ret: 0 st:-1 ts:0.460008 flags:0
2735 2735
ret: 0 st: 0 dts:0.460000 pts:0.460000 pos:40596 size:4096 flags:1
2736 2736
ret: 0 st:-1 ts:-0.645825 flags:1
......
2940 2940
----------------
2941 2941
tests/data/b-lavf.gif
2942 2942
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:-1 size:2906382 flags:1
2943
ret:-22 st:-1 ts:-1.000000 flags:0
2944
ret:-22 st:-1 ts:1.894167 flags:1
2945
ret:-22 st: 0 ts:0.800000 flags:0
2946
ret:-22 st: 0 ts:-0.320000 flags:1
2947
ret:-22 st:-1 ts:2.576668 flags:0
2948
ret:-22 st:-1 ts:1.470835 flags:1
2949
ret:-22 st: 0 ts:0.360000 flags:0
2950
ret:-22 st: 0 ts:-0.760000 flags:1
2951
ret:-22 st:-1 ts:2.153336 flags:0
2952
ret:-22 st:-1 ts:1.047503 flags:1
2953
ret:-22 st: 0 ts:-0.040000 flags:0
2954
ret:-22 st: 0 ts:2.840000 flags:1
2955
ret:-22 st:-1 ts:1.730004 flags:0
2956
ret:-22 st:-1 ts:0.624171 flags:1
2957
ret:-22 st: 0 ts:-0.480000 flags:0
2958
ret:-22 st: 0 ts:2.400000 flags:1
2959
ret:-22 st:-1 ts:1.306672 flags:0
2960
ret:-22 st:-1 ts:0.200839 flags:1
2961
ret:-22 st: 0 ts:-0.920000 flags:0
2962
ret:-22 st: 0 ts:2.000000 flags:1
2963
ret:-22 st:-1 ts:0.883340 flags:0
2964
ret:-22 st:-1 ts:-0.222493 flags:1
2965
ret:-22 st: 0 ts:2.680000 flags:0
2966
ret:-22 st: 0 ts:1.560000 flags:1
2967
ret:-22 st:-1 ts:0.460008 flags:0
2968
ret:-22 st:-1 ts:-0.645825 flags:1
2943
ret:-EINVAL st:-1 ts:-1.000000 flags:0
2944
ret:-EINVAL st:-1 ts:1.894167 flags:1
2945
ret:-EINVAL st: 0 ts:0.800000 flags:0
2946
ret:-EINVAL st: 0 ts:-0.320000 flags:1
2947
ret:-EINVAL st:-1 ts:2.576668 flags:0
2948
ret:-EINVAL st:-1 ts:1.470835 flags:1
2949
ret:-EINVAL st: 0 ts:0.360000 flags:0
2950
ret:-EINVAL st: 0 ts:-0.760000 flags:1
2951
ret:-EINVAL st:-1 ts:2.153336 flags:0
2952
ret:-EINVAL st:-1 ts:1.047503 flags:1
2953
ret:-EINVAL st: 0 ts:-0.040000 flags:0
2954
ret:-EINVAL st: 0 ts:2.840000 flags:1
2955
ret:-EINVAL st:-1 ts:1.730004 flags:0
2956
ret:-EINVAL st:-1 ts:0.624171 flags:1
2957
ret:-EINVAL st: 0 ts:-0.480000 flags:0
2958
ret:-EINVAL st: 0 ts:2.400000 flags:1
2959
ret:-EINVAL st:-1 ts:1.306672 flags:0
2960
ret:-EINVAL st:-1 ts:0.200839 flags:1
2961
ret:-EINVAL st: 0 ts:-0.920000 flags:0
2962
ret:-EINVAL st: 0 ts:2.000000 flags:1
2963
ret:-EINVAL st:-1 ts:0.883340 flags:0
2964
ret:-EINVAL st:-1 ts:-0.222493 flags:1
2965
ret:-EINVAL st: 0 ts:2.680000 flags:0
2966
ret:-EINVAL st: 0 ts:1.560000 flags:1
2967
ret:-EINVAL st:-1 ts:0.460008 flags:0
2968
ret:-EINVAL st:-1 ts:-0.645825 flags:1
2969 2969
----------------
2970 2970
tests/data/b-lavf.gxf
2971 2971
ret: 0 st: 1 dts:0.000000 pts:0.000000 pos:5024 size:65536 flags:1
......
3033 3033
ret: 0 st: 0 ts:-0.317000 flags:1
3034 3034
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:505 size:27837 flags:1
3035 3035
ret: 0 st: 1 ts:2.577000 flags:0
3036
ret:-32
3036
ret:-EOF
3037 3037
ret: 0 st: 1 ts:1.471000 flags:1
3038 3038
ret: 0 st: 1 dts:1.019000 pts:1.019000 pos:320167 size:209 flags:1
3039 3039
ret: 0 st:-1 ts:0.365002 flags:0
......
3041 3041
ret: 0 st:-1 ts:-0.740831 flags:1
3042 3042
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:505 size:27837 flags:1
3043 3043
ret: 0 st: 0 ts:2.153000 flags:0
3044
ret:-32
3044
ret:-EOF
3045 3045
ret: 0 st: 0 ts:1.048000 flags:1
3046 3046
ret: 0 st: 0 dts:0.960000 pts:0.960000 pos:291894 size:27834 flags:1
3047 3047
ret: 0 st: 1 ts:-0.058000 flags:0
......
3049 3049
ret: 0 st: 1 ts:2.836000 flags:1
3050 3050
ret: 0 st: 1 dts:1.019000 pts:1.019000 pos:320167 size:209 flags:1
3051 3051
ret: 0 st:-1 ts:1.730004 flags:0
3052
ret:-32
3052
ret:-EOF
3053 3053
ret: 0 st:-1 ts:0.624171 flags:1
3054 3054
ret: 0 st: 0 dts:0.480000 pts:0.480000 pos:146679 size:27925 flags:1
3055 3055
ret: 0 st: 0 ts:-0.482000 flags:0
......
3057 3057
ret: 0 st: 0 ts:2.413000 flags:1
3058 3058
ret: 0 st: 0 dts:0.960000 pts:0.960000 pos:291894 size:27834 flags:1
3059 3059
ret: 0 st: 1 ts:1.307000 flags:0
3060
ret:-32
3060
ret:-EOF
3061 3061
ret: 0 st: 1 ts:0.201000 flags:1
3062 3062
ret: 0 st: 1 dts:0.183000 pts:0.183000 pos:72075 size:209 flags:1
3063 3063
ret: 0 st:-1 ts:-0.904994 flags:0
......
3069 3069
ret: 0 st: 0 ts:-0.222000 flags:1
3070 3070
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:505 size:27837 flags:1
3071 3071
ret: 0 st: 1 ts:2.672000 flags:0
3072
ret:-32
3072
ret:-EOF
3073 3073
ret: 0 st: 1 ts:1.566000 flags:1
3074 3074
ret: 0 st: 1 dts:1.019000 pts:1.019000 pos:320167 size:209 flags:1
3075 3075
ret: 0 st:-1 ts:0.460008 flags:0
......
3381 3381
ret: 0 st:-1 ts:-1.000000 flags:0
3382 3382
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:1390 flags:1
3383 3383
ret: 0 st:-1 ts:1.894167 flags:1
3384
ret:-5
3384
ret:-EIO
3385 3385
ret: 0 st: 0 ts:0.788345 flags:0
3386 3386
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:1365 flags:1
3387 3387
ret: 0 st: 0 ts:-0.317506 flags:1
......
3389 3389
ret: 0 st:-1 ts:2.576668 flags:0
3390 3390
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:1369 flags:1
3391 3391
ret: 0 st:-1 ts:1.470835 flags:1
3392
ret:-5
3392
ret:-EIO
3393 3393
ret: 0 st: 0 ts:0.365011 flags:0
3394 3394
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:1390 flags:1
3395 3395
ret: 0 st: 0 ts:-0.740839 flags:1
......
3397 3397
ret: 0 st:-1 ts:2.153336 flags:0
3398 3398
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:1369 flags:1
3399 3399
ret: 0 st:-1 ts:1.047503 flags:1
3400
ret:-5
3400
ret:-EIO
3401 3401
ret: 0 st: 0 ts:-0.058322 flags:0
3402 3402
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:1390 flags:1
3403 3403
ret: 0 st: 0 ts:2.835828 flags:1
3404
ret:-5
3404
ret:-EIO
3405 3405
ret: 0 st:-1 ts:1.730004 flags:0
3406 3406
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:1369 flags:1
3407 3407
ret: 0 st:-1 ts:0.624171 flags:1
......
3409 3409
ret: 0 st: 0 ts:-0.481655 flags:0
3410 3410
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:1390 flags:1
3411 3411
ret: 0 st: 0 ts:2.412494 flags:1
3412
ret:-5
3412
ret:-EIO
3413 3413
ret: 0 st:-1 ts:1.306672 flags:0
3414 3414
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:1369 flags:1
3415 3415
ret: 0 st:-1 ts:0.200839 flags:1
......
3417 3417
ret: 0 st: 0 ts:-0.904989 flags:0
3418 3418
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:1390 flags:1
3419 3419
ret: 0 st: 0 ts:1.989184 flags:1
3420
ret:-5
3420
ret:-EIO
3421 3421
ret: 0 st:-1 ts:0.883340 flags:0
3422
ret:-5
3422
ret:-EIO
3423 3423
ret: 0 st:-1 ts:-0.222493 flags:1
3424 3424
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:1384 flags:1
3425 3425
ret: 0 st: 0 ts:2.671678 flags:0
3426 3426
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:1369 flags:1
3427 3427
ret: 0 st: 0 ts:1.565850 flags:1
3428
ret:-5
3428
ret:-EIO
3429 3429
ret: 0 st:-1 ts:0.460008 flags:0
3430 3430
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:1381 flags:1
3431 3431
ret: 0 st:-1 ts:-0.645825 flags:1
......
3433 3433
----------------
3434 3434
tests/data/b-pbmpipe.pbm
3435 3435
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:-1 size:317075 flags:1
3436
ret:-22 st:-1 ts:-1.000000 flags:0
3437
ret:-22 st:-1 ts:1.894167 flags:1
3438
ret:-22 st: 0 ts:0.800000 flags:0
3439
ret:-22 st: 0 ts:-0.320000 flags:1
3440
ret:-22 st:-1 ts:2.576668 flags:0
3441
ret:-22 st:-1 ts:1.470835 flags:1
3442
ret:-22 st: 0 ts:0.360000 flags:0
3443
ret:-22 st: 0 ts:-0.760000 flags:1
3444
ret:-22 st:-1 ts:2.153336 flags:0
3445
ret:-22 st:-1 ts:1.047503 flags:1
3446
ret:-22 st: 0 ts:-0.040000 flags:0
3447
ret:-22 st: 0 ts:2.840000 flags:1
3448
ret:-22 st:-1 ts:1.730004 flags:0
3449
ret:-22 st:-1 ts:0.624171 flags:1
3450
ret:-22 st: 0 ts:-0.480000 flags:0
3451
ret:-22 st: 0 ts:2.400000 flags:1
3452
ret:-22 st:-1 ts:1.306672 flags:0
3453
ret:-22 st:-1 ts:0.200839 flags:1
3454
ret:-22 st: 0 ts:-0.920000 flags:0
3455
ret:-22 st: 0 ts:2.000000 flags:1
3456
ret:-22 st:-1 ts:0.883340 flags:0
3457
ret:-22 st:-1 ts:-0.222493 flags:1
3458
ret:-22 st: 0 ts:2.680000 flags:0
3459
ret:-22 st: 0 ts:1.560000 flags:1
3460
ret:-22 st:-1 ts:0.460008 flags:0
3461
ret:-22 st:-1 ts:-0.645825 flags:1
3436
ret:-EINVAL st:-1 ts:-1.000000 flags:0
3437
ret:-EINVAL st:-1 ts:1.894167 flags:1
3438
ret:-EINVAL st: 0 ts:0.800000 flags:0
3439
ret:-EINVAL st: 0 ts:-0.320000 flags:1
3440
ret:-EINVAL st:-1 ts:2.576668 flags:0
3441
ret:-EINVAL st:-1 ts:1.470835 flags:1
3442
ret:-EINVAL st: 0 ts:0.360000 flags:0
3443
ret:-EINVAL st: 0 ts:-0.760000 flags:1
3444
ret:-EINVAL st:-1 ts:2.153336 flags:0
3445
ret:-EINVAL st:-1 ts:1.047503 flags:1
3446
ret:-EINVAL st: 0 ts:-0.040000 flags:0
3447
ret:-EINVAL st: 0 ts:2.840000 flags:1
3448
ret:-EINVAL st:-1 ts:1.730004 flags:0
3449
ret:-EINVAL st:-1 ts:0.624171 flags:1
3450
ret:-EINVAL st: 0 ts:-0.480000 flags:0
3451
ret:-EINVAL st: 0 ts:2.400000 flags:1
3452
ret:-EINVAL st:-1 ts:1.306672 flags:0
3453
ret:-EINVAL st:-1 ts:0.200839 flags:1
3454
ret:-EINVAL st: 0 ts:-0.920000 flags:0
3455
ret:-EINVAL st: 0 ts:2.000000 flags:1
3456
ret:-EINVAL st:-1 ts:0.883340 flags:0
3457
ret:-EINVAL st:-1 ts:-0.222493 flags:1
3458
ret:-EINVAL st: 0 ts:2.680000 flags:0
3459
ret:-EINVAL st: 0 ts:1.560000 flags:1
3460
ret:-EINVAL st:-1 ts:0.460008 flags:0
3461
ret:-EINVAL st:-1 ts:-0.645825 flags:1
3462 3462
----------------
3463 3463
tests/data/b-pgmpipe.pgm
3464 3464
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:-1 size:2534775 flags:1
3465
ret:-22 st:-1 ts:-1.000000 flags:0
3466
ret:-22 st:-1 ts:1.894167 flags:1
3467
ret:-22 st: 0 ts:0.800000 flags:0
3468
ret:-22 st: 0 ts:-0.320000 flags:1
3469
ret:-22 st:-1 ts:2.576668 flags:0
3470
ret:-22 st:-1 ts:1.470835 flags:1
3471
ret:-22 st: 0 ts:0.360000 flags:0
3472
ret:-22 st: 0 ts:-0.760000 flags:1
3473
ret:-22 st:-1 ts:2.153336 flags:0
3474
ret:-22 st:-1 ts:1.047503 flags:1
3475
ret:-22 st: 0 ts:-0.040000 flags:0
3476
ret:-22 st: 0 ts:2.840000 flags:1
3477
ret:-22 st:-1 ts:1.730004 flags:0
3478
ret:-22 st:-1 ts:0.624171 flags:1
3479
ret:-22 st: 0 ts:-0.480000 flags:0
3480
ret:-22 st: 0 ts:2.400000 flags:1
3481
ret:-22 st:-1 ts:1.306672 flags:0
3482
ret:-22 st:-1 ts:0.200839 flags:1
3483
ret:-22 st: 0 ts:-0.920000 flags:0
3484
ret:-22 st: 0 ts:2.000000 flags:1
3485
ret:-22 st:-1 ts:0.883340 flags:0
3486
ret:-22 st:-1 ts:-0.222493 flags:1
3487
ret:-22 st: 0 ts:2.680000 flags:0
3488
ret:-22 st: 0 ts:1.560000 flags:1
3489
ret:-22 st:-1 ts:0.460008 flags:0
3490
ret:-22 st:-1 ts:-0.645825 flags:1
3465
ret:-EINVAL st:-1 ts:-1.000000 flags:0
3466
ret:-EINVAL st:-1 ts:1.894167 flags:1
3467
ret:-EINVAL st: 0 ts:0.800000 flags:0
3468
ret:-EINVAL st: 0 ts:-0.320000 flags:1
3469
ret:-EINVAL st:-1 ts:2.576668 flags:0
3470
ret:-EINVAL st:-1 ts:1.470835 flags:1
3471
ret:-EINVAL st: 0 ts:0.360000 flags:0
3472
ret:-EINVAL st: 0 ts:-0.760000 flags:1
3473
ret:-EINVAL st:-1 ts:2.153336 flags:0
3474
ret:-EINVAL st:-1 ts:1.047503 flags:1
3475
ret:-EINVAL st: 0 ts:-0.040000 flags:0
3476
ret:-EINVAL st: 0 ts:2.840000 flags:1
3477
ret:-EINVAL st:-1 ts:1.730004 flags:0
3478
ret:-EINVAL st:-1 ts:0.624171 flags:1
3479
ret:-EINVAL st: 0 ts:-0.480000 flags:0
3480
ret:-EINVAL st: 0 ts:2.400000 flags:1
3481
ret:-EINVAL st:-1 ts:1.306672 flags:0
3482
ret:-EINVAL st:-1 ts:0.200839 flags:1
3483
ret:-EINVAL st: 0 ts:-0.920000 flags:0
3484
ret:-EINVAL st: 0 ts:2.000000 flags:1
3485
ret:-EINVAL st:-1 ts:0.883340 flags:0
3486
ret:-EINVAL st:-1 ts:-0.222493 flags:1
3487
ret:-EINVAL st: 0 ts:2.680000 flags:0
3488
ret:-EINVAL st: 0 ts:1.560000 flags:1
3489
ret:-EINVAL st:-1 ts:0.460008 flags:0
3490
ret:-EINVAL st:-1 ts:-0.645825 flags:1
3491 3491
----------------
3492 3492
tests/data/b-ppmpipe.ppm
3493 3493
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:-1 size:7603575 flags:1
3494
ret:-22 st:-1 ts:-1.000000 flags:0
3495
ret:-22 st:-1 ts:1.894167 flags:1
3496
ret:-22 st: 0 ts:0.800000 flags:0
3497
ret:-22 st: 0 ts:-0.320000 flags:1
3498
ret:-22 st:-1 ts:2.576668 flags:0
3499
ret:-22 st:-1 ts:1.470835 flags:1
3500
ret:-22 st: 0 ts:0.360000 flags:0
3501
ret:-22 st: 0 ts:-0.760000 flags:1
3502
ret:-22 st:-1 ts:2.153336 flags:0
3503
ret:-22 st:-1 ts:1.047503 flags:1
3504
ret:-22 st: 0 ts:-0.040000 flags:0
3505
ret:-22 st: 0 ts:2.840000 flags:1
3506
ret:-22 st:-1 ts:1.730004 flags:0
3507
ret:-22 st:-1 ts:0.624171 flags:1
3508
ret:-22 st: 0 ts:-0.480000 flags:0
3509
ret:-22 st: 0 ts:2.400000 flags:1
3510
ret:-22 st:-1 ts:1.306672 flags:0
3511
ret:-22 st:-1 ts:0.200839 flags:1
3512
ret:-22 st: 0 ts:-0.920000 flags:0
3513
ret:-22 st: 0 ts:2.000000 flags:1
3514
ret:-22 st:-1 ts:0.883340 flags:0
3515
ret:-22 st:-1 ts:-0.222493 flags:1
3516
ret:-22 st: 0 ts:2.680000 flags:0
3517
ret:-22 st: 0 ts:1.560000 flags:1
3518
ret:-22 st:-1 ts:0.460008 flags:0
3519
ret:-22 st:-1 ts:-0.645825 flags:1
3494
ret:-EINVAL st:-1 ts:-1.000000 flags:0
3495
ret:-EINVAL st:-1 ts:1.894167 flags:1
3496
ret:-EINVAL st: 0 ts:0.800000 flags:0
3497
ret:-EINVAL st: 0 ts:-0.320000 flags:1
3498
ret:-EINVAL st:-1 ts:2.576668 flags:0
3499
ret:-EINVAL st:-1 ts:1.470835 flags:1
3500
ret:-EINVAL st: 0 ts:0.360000 flags:0
3501
ret:-EINVAL st: 0 ts:-0.760000 flags:1
3502
ret:-EINVAL st:-1 ts:2.153336 flags:0
3503
ret:-EINVAL st:-1 ts:1.047503 flags:1
3504
ret:-EINVAL st: 0 ts:-0.040000 flags:0
3505
ret:-EINVAL st: 0 ts:2.840000 flags:1
3506
ret:-EINVAL st:-1 ts:1.730004 flags:0
3507
ret:-EINVAL st:-1 ts:0.624171 flags:1
3508
ret:-EINVAL st: 0 ts:-0.480000 flags:0
3509
ret:-EINVAL st: 0 ts:2.400000 flags:1
3510
ret:-EINVAL st:-1 ts:1.306672 flags:0
3511
ret:-EINVAL st:-1 ts:0.200839 flags:1
3512
ret:-EINVAL st: 0 ts:-0.920000 flags:0
3513
ret:-EINVAL st: 0 ts:2.000000 flags:1
3514
ret:-EINVAL st:-1 ts:0.883340 flags:0
3515
ret:-EINVAL st:-1 ts:-0.222493 flags:1
3516
ret:-EINVAL st: 0 ts:2.680000 flags:0
3517
ret:-EINVAL st: 0 ts:1.560000 flags:1
3518
ret:-EINVAL st:-1 ts:0.460008 flags:0
3519
ret:-EINVAL st:-1 ts:-0.645825 flags:1
3520 3520
----------------
3521 3521
tests/data/b-lavf.rm
3522 3522
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:398 size:31082 flags:1
......
3662 3662
ret: 0 st: 0 ts:-0.317506 flags:1
3663 3663
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:0 size:1024 flags:1
3664 3664
ret: 0 st:-1 ts:2.576668 flags:0
3665
ret:-32
3665
ret:-EOF
3666 3666
ret: 0 st:-1 ts:1.470835 flags:1
3667 3667
ret: 0 st: 0 dts:1.470839 pts:1.470839 pos:32432 size:1024 flags:1
3668 3668
ret: 0 st: 0 ts:0.364989 flags:0
......
3670 3670
ret: 0 st: 0 ts:-0.740816 flags:1
3671 3671
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:0 size:1024 flags:1
3672 3672
ret: 0 st:-1 ts:2.153336 flags:0
3673
ret:-32
3673
ret:-EOF
3674 3674
ret: 0 st:-1 ts:1.047503 flags:1
3675 3675
ret: 0 st: 0 dts:1.047483 pts:1.047483 pos:23097 size:1024 flags:1
3676 3676
ret: 0 st: 0 ts:-0.058322 flags:0
3677 3677
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:0 size:1024 flags:1
3678 3678
ret: 0 st: 0 ts:2.835828 flags:1
3679
ret:-32
3679
ret:-EOF
3680 3680
ret: 0 st:-1 ts:1.730004 flags:0
3681 3681
ret: 0 st: 0 dts:1.730023 pts:1.730023 pos:38147 size:1024 flags:1
3682 3682
ret: 0 st:-1 ts:0.624171 flags:1
......
3684 3684
ret: 0 st: 0 ts:-0.481678 flags:0
3685 3685
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:0 size:1024 flags:1
3686 3686
ret: 0 st: 0 ts:2.412517 flags:1
3687
ret:-32
3687
ret:-EOF
3688 3688
ret: 0 st:-1 ts:1.306672 flags:0
3689 3689
ret: 0 st: 0 dts:1.306667 pts:1.306667 pos:28812 size:1024 flags:1
3690 3690
ret: 0 st:-1 ts:0.200839 flags:1
......
3698 3698
ret: 0 st:-1 ts:-0.222493 flags:1
3699 3699
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:0 size:1024 flags:1
3700 3700
ret: 0 st: 0 ts:2.671655 flags:0
3701
ret:-32
3701
ret:-EOF
3702 3702
ret: 0 st: 0 ts:1.565850 flags:1
3703 3703
ret: 0 st: 0 dts:1.565850 pts:1.565850 pos:34527 size:1024 flags:1
3704 3704
ret: 0 st:-1 ts:0.460008 flags:0
......
3740 3740
ret: 0 st:-1 ts:-1.000000 flags:0
3741 3741
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:44 size:4096 flags:1
3742 3742
ret: 0 st:-1 ts:1.894167 flags:1
3743
ret:-32
3743
ret:-EOF
3744 3744
ret: 0 st: 0 ts:0.788345 flags:0
3745 3745
ret: 0 st: 0 dts:0.788345 pts:0.788345 pos:69576 size:4096 flags:1
3746 3746
ret: 0 st: 0 ts:-0.317506 flags:1
3747 3747
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:44 size:4096 flags:1
3748 3748
ret: 0 st:-1 ts:2.576668 flags:0
3749
ret:-32
3749
ret:-EOF
3750 3750
ret: 0 st:-1 ts:1.470835 flags:1
3751
ret:-32
3751
ret:-EOF
3752 3752
ret: 0 st: 0 ts:0.365011 flags:0
3753 3753
ret: 0 st: 0 dts:0.365011 pts:0.365011 pos:32238 size:4096 flags:1
3754 3754
ret: 0 st: 0 ts:-0.740839 flags:1
3755 3755
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:44 size:4096 flags:1
3756 3756
ret: 0 st:-1 ts:2.153336 flags:0
3757
ret:-32
3757
ret:-EOF
3758 3758
ret: 0 st:-1 ts:1.047503 flags:1
3759
ret:-32
3759
ret:-EOF
3760 3760
ret: 0 st: 0 ts:-0.058322 flags:0
3761 3761
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:44 size:4096 flags:1
3762 3762
ret: 0 st: 0 ts:2.835828 flags:1
3763
ret:-32
3763
ret:-EOF
3764 3764
ret: 0 st:-1 ts:1.730004 flags:0
3765
ret:-32
3765
ret:-EOF
3766 3766
ret: 0 st:-1 ts:0.624171 flags:1
3767 3767
ret: 0 st: 0 dts:0.624172 pts:0.624172 pos:55096 size:4096 flags:1
3768 3768
ret: 0 st: 0 ts:-0.481655 flags:0
3769 3769
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:44 size:4096 flags:1
3770 3770
ret: 0 st: 0 ts:2.412494 flags:1
3771
ret:-32
3771
ret:-EOF
3772 3772
ret: 0 st:-1 ts:1.306672 flags:0
3773
ret:-32
3773
ret:-EOF
3774 3774
ret: 0 st:-1 ts:0.200839 flags:1
3775 3775
ret: 0 st: 0 dts:0.200839 pts:0.200839 pos:17758 size:4096 flags:1
3776 3776
ret: 0 st: 0 ts:-0.904989 flags:0
3777 3777
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:44 size:4096 flags:1
3778 3778
ret: 0 st: 0 ts:1.989184 flags:1
3779
ret:-32
3779
ret:-EOF
3780 3780
ret: 0 st:-1 ts:0.883340 flags:0
3781 3781
ret: 0 st: 0 dts:0.883333 pts:0.883333 pos:77954 size:4096 flags:1
3782 3782
ret: 0 st:-1 ts:-0.222493 flags:1
3783 3783
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:44 size:4096 flags:1
3784 3784
ret: 0 st: 0 ts:2.671678 flags:0
3785
ret:-32
3785
ret:-EOF
3786 3786
ret: 0 st: 0 ts:1.565850 flags:1
3787
ret:-32
3787
ret:-EOF
3788 3788
ret: 0 st:-1 ts:0.460008 flags:0
3789 3789
ret: 0 st: 0 dts:0.460000 pts:0.460000 pos:40616 size:4096 flags:1
3790 3790
ret: 0 st:-1 ts:-0.645825 flags:1
tests/seek_test.c
30 30
#undef printf
31 31
#undef fprintf
32 32

  
33
static char buffer[20];
34

  
35
static const char *ret_str(int v)
36
{
37
    switch (v) {
38
    case AVERROR_EOF:     return "-EOF";
39
    case AVERROR(EIO):    return "-EIO";
40
    case AVERROR(ENOMEM): return "-ENOMEM";
41
    case AVERROR(EINVAL): return "-EINVAL";
42
    default:
43
        snprintf(buffer, sizeof(buffer), "%2d", v);
44
        return buffer;
45
    }
46
}
47

  
33 48
int main(int argc, char **argv)
34 49
{
35 50
    const char *filename;
......
78 93
        memset(&pkt, 0, sizeof(pkt));
79 94
        if(ret>=0){
80 95
            ret= av_read_frame(ic, &pkt);
81
            printf("ret:%2d", ret);
96
            printf("ret:%s", ret_str(ret));
82 97
            if(ret>=0){
83 98
                st= ic->streams[pkt.stream_index];
84 99
                printf(" st:%2d dts:%f pts:%f pos:%" PRId64 " size:%d flags:%d", pkt.stream_index, pkt.dts*av_q2d(st->time_base), pkt.pts*av_q2d(st->time_base), pkt.pos, pkt.size, pkt.flags);
......
97 112
        //FIXME fully test the new seek API
98 113
        if(i&1) ret = avformat_seek_file(ic, stream_id, INT64_MIN, timestamp, timestamp, 0);
99 114
        else    ret = avformat_seek_file(ic, stream_id, timestamp, timestamp, INT64_MAX, 0);
100
        printf("ret:%2d st:%2d ts:%f flags:%d\n", ret, stream_id, timestamp*(stream_id<0 ? 1.0/AV_TIME_BASE : av_q2d(st->time_base)), i&1);
115
        printf("ret:%s st:%2d ts:%f flags:%d\n", ret_str(ret), stream_id, timestamp*(stream_id<0 ? 1.0/AV_TIME_BASE : av_q2d(st->time_base)), i&1);
101 116
    }
102 117

  
103 118
    return 0;

Also available in: Unified diff