- Timestamp:
- Apr 8, 2011 4:04:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/sdl_dev.c
r3499 r3509 734 734 } 735 735 736 if (frame->size==0 || frame->buf==NULL) 736 if (frame->size==0 || frame->buf==NULL || 737 frame->size < stream->vafp.framebytes) 737 738 goto on_return; 738 739 … … 746 747 } 747 748 748 pj_memcpy(stream->surf->pixels, frame->buf, frame->size); 749 pj_memcpy(stream->surf->pixels, frame->buf, 750 stream->vafp.framebytes); 749 751 750 752 if (SDL_MUSTLOCK(stream->surf)) {
Note: See TracChangeset
for help on using the changeset viewer.