Changeset 3562


Ignore:
Timestamp:
May 10, 2011 11:38:27 AM (9 years ago)
Author:
nanang
Message:

Re #1219: Removed decoded buffer size validation before decoding process itself, as the decoded buffer size requirement will be known after successful decoding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c

    r3530 r3562  
    13211321 
    13221322    /* Validate output buffer size */ 
     1323    // Do this validation later after getting decoding result, where the real 
     1324    // decoded size will be assured. 
    13231325    if (ff->dec_vafp.framebytes > output_buf_len) 
    13241326        return PJ_ETOOSMALL; 
     
    14061408        } 
    14071409 
    1408         /* Check provided buffer size after format changed */ 
     1410        /* Check provided buffer size */ 
    14091411        if (vafp->framebytes > output_buf_len) 
    14101412            return PJ_ETOOSMALL; 
Note: See TracChangeset for help on using the changeset viewer.