Reserve 2 bytes for possible padding after the last row. init_put_bits(&pb, hdr, bufsize - (hdr - buf) - 2); if (xsub_encode_rle(&pb, h->rects[0]->pict.data[0], h->rects[0]->pict.linesize[0]*2, h->rects[0]->w, (h->rects[0]->h + 1) >> 1))...
Reserve 2 bytes for possible padding after the last row. init_put_bits(&pb, hdr, bufsize - (hdr - buf) - 2); if (xsub_encode_rle(&pb, h->rects[0]->pict.data[0], h->rects[0]->pict.linesize[0]*2, h->rects[0]->w, (h->rects[0]->h + 1) >> 1)) ...
Reserve 2 bytes for possible padding after the last row. init_put_bits(&pb, hdr, bufsize - (hdr - buf) - 2); if (xsub_encode_rle(&pb, h->rects[0]->pict.data[0], h->rects[0]->pict.linesize[0]*2, h->rects[0]->w, (h->rects[0]->h + 1) >> 1)) r...
Reserve 2 bytes for possible padding after the last row. init_put_bits(&pb, hdr, bufsize - (hdr - buf) - 2); if (xsub_encode_rle(&pb, h->rects[0]->pict.data[0], h->rects[0]->pict.linesize[0]*2, h->rects[0]->w, (h->rects[0]->h + 1) >> 1)) r...