Revision 1c6858bc src/Chunkiser/output-stream-raw.c

View differences:

src/Chunkiser/output-stream-raw.c
45 45

  
46 46
    pt = config_value_str(cfg_tags, "payload");
47 47
    if (pt) {
48
      if (strcmp(pt, "avf")) {
48
      if (!strcmp(pt, "avf")) {
49 49
        res->payload_type = 1;
50 50
      }
51 51
    }
......
65 65
    uint8_t codec;
66 66

  
67 67
    payload_header_parse(data, &codec, &width, &height, &frame_rate_n, &frame_rate_d);
68
    if (codec != 1) {
68
    if (codec > 127) {
69 69
      fprintf(stderr, "Error! Non video chunk: %x!!!\n", codec);
70 70
      return;
71 71
    }

Also available in: Unified diff