Jigsaw X264 !full! -
Decryption (requires modified ffmpeg with jigsaw support):
void x264_jigsaw_permute_slices(x264_t *h, x264_nal_t *nal) if (!h->param.b_jigsaw_enable) return; int num_slices = h->sh.i_slice_count; int *order = x264_malloc(num_slices * sizeof(int)); // Fisher-Yates with key from h->param.jigsaw_key permute_order(order, num_slices, h->param.jigsaw_key); // Rearrange slice data in output buffer x264_slice_t *new_slices = reorder_slices(h->slices, order); rebuild_nal_unit(nal, new_slices); jigsaw x264