Revision 202aca67

View differences:

libavcodec/libgsm.c
121 121
static int libgsm_decode_frame(AVCodecContext *avctx,
122 122
                               void *data, int *data_size,
123 123
                               uint8_t *buf, int buf_size) {
124

  
125
    if(buf_size < avctx->block_align) return 0;
126

  
124
    *data_size = 0; /* In case of error */
125
    if(buf_size < avctx->block_align) return -1;
127 126
    switch(avctx->codec_id) {
128 127
    case CODEC_ID_GSM:
129 128
        if(gsm_decode(avctx->priv_data,buf,data)) return -1;

Also available in: Unified diff