Changeset 5948 for pjproject


Ignore:
Timestamp:
Mar 8, 2019 9:22:21 AM (5 years ago)
Author:
ming
Message:

Re #2181: Fixed assertion in darwin_dev pj_assert(frame->size >= stream->frame_size);

But the problem itself is caused by video port, which passes the wrong frame size when the video capture is passive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/vid_port.c

    r5939 r5948  
    13531353         * The decoding counterpart is in vid_pasv_port_put_frame(). 
    13541354         */ 
    1355         status = pjmedia_vid_dev_stream_get_frame(vp->strm, (vp->conv.conv? 
    1356                                                   vp->frm_buf: frame)); 
     1355        pjmedia_frame *get_frm = vp->conv.conv? vp->frm_buf : frame; 
     1356 
     1357        if (vp->conv.conv) 
     1358            get_frm->size = vp->frm_buf_size; 
     1359 
     1360        status = pjmedia_vid_dev_stream_get_frame(vp->strm, get_frm); 
    13571361        if (status != PJ_SUCCESS) 
    13581362            return status; 
Note: See TracChangeset for help on using the changeset viewer.