Changeset 6153


Ignore:
Timestamp:
Feb 4, 2020 5:08:14 AM (4 years ago)
Author:
ming
Message:

Re #2253: Check for insufficient buffer if remote is sending higher res than we can handle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/vpx.c

    r6151 r6153  
    900900    } 
    901901 
     902    if (img->d_w * img->d_h * 3/2 > output->size) 
     903        return PJMEDIA_CODEC_EFRMTOOSHORT; 
     904 
    902905    output->type = PJMEDIA_FRAME_TYPE_VIDEO; 
    903906    output->timestamp = packets[0].timestamp; 
Note: See TracChangeset for help on using the changeset viewer.