Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (65)

Sur d’autres sites (13495)

  • x264 Encoding use x264_picture_clean crash

    5 mai 2017, par Wong Sam

    When I use iphone encoding CMSampleBufferRef To H264, it offen crash at x264_picture_clean I dont’t know how to deal it

    enter image description here

    x264_picture_t* pPic_in;

    here is my init about pPic_in

    pPic_in = (x264_picture_t*)malloc(sizeof(x264_picture_t));
    pPic_out = (x264_picture_t*)malloc(sizeof(x264_picture_t));

    x264_picture_init(pPic_out);

    x264_picture_init(pPic_in);
    x264_picture_alloc(pPic_in, csp, pParam->i_width, pParam->i_height);

    pPic_in->img.i_stride[0] = width;
    pPic_in->img.i_stride[1] = width / 2;
    pPic_in->img.i_stride[2] = width / 2;
    pPic_in->img.i_plane = 3;

    and i set data here

       picture_buf = yuv420_data;
       pPic_in->img.plane[0] = picture_buf;
       pPic_in->img.plane[1] = picture_buf + y_size;
       pPic_in->img.plane[2] = picture_buf + y_size*5/4;

    it looks well , when i run it on my iphone,but sometimes it will crash at

    x264_picture_clean

    here is more detail abuot pPic_in when crash occer
    enter image description here

    Thank u very much

  • x264 Encoding use x264_picture_clean crash

    5 mai 2017, par Wong Sam

    When I use iphone encoding CMSampleBufferRef To H264, it offen crash at x264_picture_clean I dont’t know how to deal it

    enter image description here

    x264_picture_t* pPic_in;

    here is my init about pPic_in

    pPic_in = (x264_picture_t*)malloc(sizeof(x264_picture_t));
    pPic_out = (x264_picture_t*)malloc(sizeof(x264_picture_t));

    x264_picture_init(pPic_out);

    x264_picture_init(pPic_in);
    x264_picture_alloc(pPic_in, csp, pParam->i_width, pParam->i_height);

    pPic_in->img.i_stride[0] = width;
    pPic_in->img.i_stride[1] = width / 2;
    pPic_in->img.i_stride[2] = width / 2;
    pPic_in->img.i_plane = 3;

    and i set data here

       picture_buf = yuv420_data;
       pPic_in->img.plane[0] = picture_buf;
       pPic_in->img.plane[1] = picture_buf + y_size;
       pPic_in->img.plane[2] = picture_buf + y_size*5/4;

    it looks well , when i run it on my iphone,but sometimes it will crash at

    x264_picture_clean

    here is more detail abuot pPic_in when crash occer
    enter image description here

    Thank u very much

  • x264 Encoding use x264_picture_clean crash

    5 mai 2017, par Wong Sam

    When I use iphone encoding CMSampleBufferRef To H264, it offen crash at x264_picture_clean I dont’t know how to deal it

    enter image description here

    x264_picture_t* pPic_in;

    here is my init about pPic_in

    pPic_in = (x264_picture_t*)malloc(sizeof(x264_picture_t));
    pPic_out = (x264_picture_t*)malloc(sizeof(x264_picture_t));

    x264_picture_init(pPic_out);

    x264_picture_init(pPic_in);
    x264_picture_alloc(pPic_in, csp, pParam->i_width, pParam->i_height);

    pPic_in->img.i_stride[0] = width;
    pPic_in->img.i_stride[1] = width / 2;
    pPic_in->img.i_stride[2] = width / 2;
    pPic_in->img.i_plane = 3;

    and i set data here

       picture_buf = yuv420_data;
       pPic_in->img.plane[0] = picture_buf;
       pPic_in->img.plane[1] = picture_buf + y_size;
       pPic_in->img.plane[2] = picture_buf + y_size*5/4;

    it looks well , when i run it on my iphone,but sometimes it will crash at

    x264_picture_clean

    here is more detail abuot pPic_in when crash occer
    enter image description here

    Thank u very much