Revision e955bf3b libavformat/asfcrypt.c

View differences:

libavformat/asfcrypt.c
156 156
    av_rc4_crypt(&rc4, (uint8_t *)rc4buff, NULL, sizeof(rc4buff), NULL, 1);
157 157
    multiswap_init((uint8_t *)rc4buff, ms_keys);
158 158

  
159
    packetkey = qwords[num_qwords - 1];
159
    packetkey = AV_RN64(&qwords[num_qwords - 1]);
160 160
    packetkey ^= rc4buff[7];
161 161
    av_des_init(&des, key + 12, 64, 1);
162 162
    av_des_crypt(&des, (uint8_t *)&packetkey, (uint8_t *)&packetkey, 1, NULL, 1);

Also available in: Unified diff