Changeset 4252
- Timestamp:
- Sep 13, 2012 8:08:01 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/vid_port.c
r4168 r4252 333 333 prm->vidparam.dir, &prm->vidparam.fmt); 334 334 335 if (vp->stream_role == ROLE_ACTIVE) { 336 need_frame_buf = PJ_TRUE; 337 } 335 need_frame_buf = PJ_TRUE; 338 336 } 339 337 … … 655 653 656 654 if (vp->conv.conv) { 657 dst_frame->buf = vp->conv.conv_buf; 658 dst_frame->size = vp->conv.conv_buf_size; 655 if (!dst_frame->buf || dst_frame->size < vp->conv.conv_buf_size) { 656 dst_frame->buf = vp->conv.conv_buf; 657 dst_frame->size = vp->conv.conv_buf_size; 658 } 659 659 status = pjmedia_converter_convert(vp->conv.conv, 660 660 src_frame, dst_frame);
Note: See TracChangeset
for help on using the changeset viewer.