Revision 7d587359

View differences:

libavcodec/mjpeg.c
1874 1874
        }
1875 1875
    }
1876 1876
the_end:
1877
    if(buf_ptr > buf_end)
1878
      buf_ptr = buf_end;
1879

  
1877 1880
    dprintf("mjpeg decode frame unused %d bytes\n", buf_end - buf_ptr);
1878 1881
//    return buf_end - buf_ptr;
1879 1882
    return buf_ptr - buf;

Also available in: Unified diff