Revision 55903423

View differences:

libavcodec/cyuv.c
87 87
     * of 4 pixels. Thus, the total size of the buffer ought to be:
88 88
     *    (3 * 16) + height * (width * 3 / 4) */
89 89
    if (buf_size != 48 + s->height * (s->width * 3 / 4)) {
90
      av_log(avctx, AV_LOG_ERROR, "ffmpeg: cyuv: got a buffer with %d bytes when %d were expected\n",
91
        buf_size,
92
        48 + s->height * (s->width * 3 / 4));
93
      return -1;
90
        av_log(avctx, AV_LOG_ERROR, "ffmpeg: cyuv: got a buffer with %d bytes when %d were expected\n",
91
               buf_size, 48 + s->height * (s->width * 3 / 4));
92
        return -1;
94 93
    }
95 94

  
96 95
    /* pixel data starts 48 bytes in, after 3x16-byte tables */
97 96
    stream_ptr = 48;
98 97

  
99
    if(s->frame.data[0])
98
    if (s->frame.data[0])
100 99
        avctx->release_buffer(avctx, &s->frame);
101 100

  
102 101
    s->frame.buffer_hints = FF_BUFFER_HINTS_VALID;
103 102
    s->frame.reference = 0;
104
    if(avctx->get_buffer(avctx, &s->frame) < 0) {
103
    if (avctx->get_buffer(avctx, &s->frame) < 0) {
105 104
        av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
106 105
        return -1;
107 106
    }

Also available in: Unified diff