Revision aba29e6f tests/seek_test.c

View differences:

tests/seek_test.c
31 31
    AVFormatContext *ic;
32 32
    int i, ret, stream_id;
33 33
    int64_t timestamp;
34
    AVFormatParameters params, *ap= &params;
35
    memset(ap, 0, sizeof(params));
36
    ap->channels=1;
37
    ap->sample_rate= 22050;
34 38

  
35 39
    /* initialize libavcodec, and register all codecs and formats */
36 40
    av_register_all();
......
50 54
        exit(1);
51 55
    }
52 56

  
53
    ret = av_open_input_file(&ic, filename, NULL, 0, NULL);
57
    ret = av_open_input_file(&ic, filename, NULL, 0, ap);
54 58
    if (ret < 0) {
55 59
        fprintf(stderr, "cannot open %s\n", filename);
56 60
        exit(1);

Also available in: Unified diff